@xeokit/xeokit-sdk 2.6.102 → 2.6.103

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.6.102",
3
+ "version": "2.6.103",
4
4
  "description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -429,8 +429,11 @@ function loadDefaultScene(ctx) {
429
429
  ||
430
430
  ((depth === 0) && ("Node." + String(ctx.nextId++).padStart(4, "0"))));
431
431
  if (entityId) {
432
+ entityId = ctx.globalizeObjectIds ? math.globalizeObjectId(ctx.sceneModel.id, entityId) : entityId;
433
+
432
434
  while (ctx.sceneModel.objects[entityId]) {
433
435
  entityId = nodeName + "." + String(ctx.nextId++).padStart(4, "0");
436
+ entityId = ctx.globalizeObjectIds ? math.globalizeObjectId(ctx.sceneModel.id, entityId) : entityId;
434
437
  }
435
438
  meshIdsStack.push(meshIds);
436
439
  meshIds = [];
@@ -448,17 +451,16 @@ function loadDefaultScene(ctx) {
448
451
 
449
452
  if (entityId) {
450
453
  if (meshIds.length > 0) {
451
- const globalId = ctx.globalizeObjectIds ? math.globalizeObjectId(ctx.sceneModel.id, entityId) : entityId;
452
454
  ctx.sceneModel.createEntity({
453
- id: globalId,
455
+ id: entityId,
454
456
  meshIds: meshIds,
455
457
  isObject: true
456
458
  });
457
459
  if (ctx.autoMetaModel) {
458
460
  ctx.metaObjects.push({
459
- id: globalId,
461
+ id: entityId,
460
462
  type: "Default",
461
- name: globalId,
463
+ name: entityId,
462
464
  parent: ctx.sceneModel.id
463
465
  });
464
466
  }