Closed Kurtil closed 1 year ago
In the same example, setting all objects but one (the door) as unpickable does not work properly. Some objects are still pickable.
sceneModel.on("loaded", () => {
const allIdsExceptTheFrontDoor = Object.values(viewer.scene.objects)
.map(o => o.id)
.filter(id => id !== "1s1jVhK8z0pgKYcr9jt7AB");
viewer.scene.setObjectsPickable(allIdsExceptTheFrontDoor, false);
});
Some objects may be still picked even if there are not pickable.
Steps to reproduce the behavior: 1 - Serve the following code as index.html 2 - try to pick the red door 3 - the door is colorized on green on hover and clicking on it log it on the console as it is picked.
Expected behaviour: It may not be picked as the object is not pickable (see the logged object on the console :
pickable: false
)code:
Xeokit Version 2.2.2