@colijnit/configurator 261.20.9 → 261.20.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2196,6 +2196,17 @@ class BuildFurnitureBaseService {
2196
2196
  MaterialUtils.ClearCaches();
2197
2197
  VariationUtils.ClearCache();
2198
2198
  }
2199
+ cleanup() {
2200
+ ObjectUtils.DisposeObject(this.full3DObjectToUse);
2201
+ this.full3DObjectToUse = undefined;
2202
+ this._currentCustomFloorGroup = undefined;
2203
+ ObjectUtils.DisposeObject(this._activeChildElement);
2204
+ this._activeChildElement = undefined;
2205
+ this.placedAdjustables.length = 0;
2206
+ this.placedAddables.length = 0;
2207
+ this._adjustables.length = 0;
2208
+ this._addables.length = 0;
2209
+ }
2199
2210
  async prepareInstanceForBuild(shouldCopyInstance, loadFromProject, looseOriginalConfiguration, result) {
2200
2211
  if (shouldCopyInstance && !loadFromProject) {
2201
2212
  const originalInstanceId = result.instanceId;
@@ -2645,17 +2656,6 @@ class BuildFurnitureBaseService {
2645
2656
  // clean
2646
2657
  this.cleanup();
2647
2658
  }
2648
- cleanup() {
2649
- ObjectUtils.DisposeObject(this.full3DObjectToUse);
2650
- this.full3DObjectToUse = undefined;
2651
- this._currentCustomFloorGroup = undefined;
2652
- ObjectUtils.DisposeObject(this._activeChildElement);
2653
- this._activeChildElement = undefined;
2654
- this.placedAdjustables.length = 0;
2655
- this.placedAddables.length = 0;
2656
- this._adjustables.length = 0;
2657
- this._addables.length = 0;
2658
- }
2659
2659
  canConnectSelections(sel1, sel2) {
2660
2660
  if (!sel1.decoNode || !sel2.decoNode) {
2661
2661
  return false;
@@ -11889,6 +11889,7 @@ class ConfiguratorComponent {
11889
11889
  return;
11890
11890
  }
11891
11891
  this._configuratorConnectorService.cleanUp();
11892
+ this._buildFurnitureService.currentActiveService.cleanup(); // Clean up the threeD stuff.
11892
11893
  this.showFullConfiguration = undefined;
11893
11894
  this._configuratorEventService.skuSet.next(undefined);
11894
11895
  this._configuratorEventService.instanceIdSet.next(undefined);