diff --git a/src/extensions/dnatco/behavior.ts b/src/extensions/dnatco/behavior.ts index 57ca11ca03eef315f8b9677fbbd995c922c68c02..bbe33f8e9c5c8d700a08926962303d2bc5a7e620 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); } },