From 0064293e0110bb532c3148319e42696fa6cb6d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=BD?= <michal.maly@ibt.cas.cz> Date: Mon, 16 Jan 2023 19:35:55 +0100 Subject: [PATCH] Unregister ConfalPyramids --- src/extensions/dnatco/behavior.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extensions/dnatco/behavior.ts b/src/extensions/dnatco/behavior.ts index 57ca11ca0..bbe33f8e9 100644 --- a/src/extensions/dnatco/behavior.ts +++ b/src/extensions/dnatco/behavior.ts @@ -39,11 +39,15 @@ export const DnatcoNtCs = PluginBehavior.create<{ autoAttach: boolean, showToolT } unregister() { + this.ctx.customModelProperties.unregister(ConfalPyramidsProvider.descriptor.name); this.ctx.customModelProperties.unregister(NtCTubeProvider.descriptor.name); + this.ctx.representation.structure.registry.remove(ConfalPyramidsRepresentationProvider); + this.ctx.representation.structure.themes.colorThemeRegistry.remove(ConfalPyramidsColorThemeProvider); this.ctx.representation.structure.registry.remove(NtCTubeRepresentationProvider); this.ctx.representation.structure.themes.colorThemeRegistry.remove(NtCTubeColorThemeProvider); + this.ctx.builders.structure.representation.unregisterPreset(ConfalPyramidsPreset); this.ctx.builders.structure.representation.unregisterPreset(NtCTubePreset); } }, -- GitLab