@xeokit/xeokit-sdk 2.5.2-beta-16 → 2.5.2-beta-17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.5.2-beta-16",
3
+ "version": "2.5.2-beta-17",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -217,13 +217,13 @@ class MetaModel {
217
217
  external: metaObjectData.external,
218
218
  });
219
219
  this.metaScene.metaObjects[id] = metaObject;
220
+ this.metaObjects.push(metaObject);
220
221
  }
221
222
  metaObject.metaModels.push(this);
222
223
  if (!metaObjectData.parent) {
223
224
  this.rootMetaObjects.push(metaObject);
224
225
  metaScene.rootMetaObjects[id] = metaObject;
225
226
  }
226
- this.metaObjects.push(metaObject);
227
227
  }
228
228
  }
229
229
  }
@@ -283,8 +283,8 @@ class MetaModel {
283
283
 
284
284
  // Relink MetaObjects to their MetaModels
285
285
 
286
- for (let objectId in metaScene.metaObjects) {
287
- const metaObject = metaScene.metaObjects[objectId];
286
+ for (let objectId in this.metaObjects) {
287
+ const metaObject = this.metaObjects[objectId];
288
288
  metaObject.metaModels = [];
289
289
  }
290
290