Skip to content

Commit b3a5776

Browse files
committed
Add patches to cursor raycast list
1 parent ba84bfd commit b3a5776

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/spatialCursor/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,8 @@ import * as THREE from '../../thirdPartyCode/three/three.module.js';
875875
if (cachedOcclusionObject) {
876876
objectsToCheck.push(cachedOcclusionObject);
877877
}
878+
objectsToCheck = objectsToCheck.concat(Object.values(realityEditor.spatialCapture.spatialPatchCoordinator.patches).map(patch => patch.container));
879+
878880
// if (realityEditor.gui.threejsScene.getGroundPlaneCollider()) {
879881
// objectsToCheck.push(realityEditor.gui.threejsScene.getGroundPlaneCollider());
880882
// }

0 commit comments

Comments
 (0)