@xeokit/xeokit-sdk 2.4.2-beta-11 → 2.4.2-beta-12

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-11",
3
+ "version": "2.4.2-beta-12",
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",
@@ -1517,6 +1517,8 @@ const Renderer = function (scene, options) {
1517
1517
  snappedCanvasPos = scene.camera.projectWorldPos(snappedWorldPos);
1518
1518
  }
1519
1519
 
1520
+ const snappedEntity = (snappedPickable && snappedPickable.delegatePickedEntity) ? snappedPickable.delegatePickedEntity() : snappedPickable;
1521
+
1520
1522
  return {
1521
1523
  snapType,
1522
1524
  snappedToVertex: snapType === "vertex",
@@ -1526,8 +1528,8 @@ const Renderer = function (scene, options) {
1526
1528
  snappedWorldPos,
1527
1529
  snappedWorldNormal,
1528
1530
  snappedCanvasPos,
1529
- snappedEntity: snappedPickable,
1530
- entity: pickable
1531
+ snappedEntity,
1532
+ entity: snappedEntity
1531
1533
  };
1532
1534
  };
1533
1535