@xeokit/xeokit-sdk 2.4.2-beta-2 → 2.4.2-beta-4

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.4.2-beta-2",
3
+ "version": "2.4.2-beta-4",
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",
@@ -347,10 +347,14 @@ class MetaModel {
347
347
  // Globalize MetaObject IDs and parent IDs
348
348
 
349
349
  metaObjectData.originalSystemId = metaObjectData.id;
350
- metaObjectData.originalParentSystemId = metaObjectData.parent;
350
+ if (metaObjectData.parent) {
351
+ metaObjectData.originalParentSystemId = metaObjectData.parent;
352
+ }
351
353
  if (globalize) {
352
354
  metaObjectData.id = math.globalizeObjectId(this.id, metaObjectData.id);
353
- metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
355
+ if (metaObjectData.parent) {
356
+ metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
357
+ }
354
358
  }
355
359
 
356
360
  // Globalize MetaObject property set IDs
@@ -48,7 +48,7 @@ export declare class MetaScene {
48
48
  *
49
49
  * @type {{String:MetaObject}}
50
50
  */
51
- metaObjectsByType: {[key: string]: MetaObject};
51
+ metaObjectsByType: {[key: string]: {[key: string]: MetaObject} };
52
52
 
53
53
  /**
54
54
  * Subscribes to an event fired at this Viewer.