Skip to content

Commit

Permalink
Fix first object menu select bug
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox committed Sep 6, 2023
1 parent 782e006 commit 0cdde4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/react-components/room/hooks/useObjectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ function handleInspect(scene, object, callback) {

callback(object);

if (object.el.object3D !== cameraSystem.inspectable) {
const object3D = shouldUseNewLoader()
? APP.world.eid2obj.get(object.el.eid)
: object.el.object3D;

if (object3D !== cameraSystem.inspectable) {
if (cameraSystem.inspectable) {
cameraSystem.uninspect(false);
}
Expand Down

0 comments on commit 0cdde4c

Please sign in to comment.