Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirox committed Sep 6, 2023
1 parent 3981547 commit d4bb10f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/react-components/room/hooks/useObjectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function handleInspect(scene, object, callback) {
cameraSystem.uninspect(false);
}

cameraSystem.inspect(object, 1.5, false);
cameraSystem.inspect(object3D, 1.5, false);
}
}

Expand All @@ -65,7 +65,8 @@ function handleDeselect(scene, object, callback) {
cameraSystem.uninspect(false);

if (object) {
cameraSystem.inspect(object, 1.5, false);
const object3D = shouldUseNewLoader() ? APP.world.eid2obj.get(object.eid) : object.el.object3D;
cameraSystem.inspect(object3D, 1.5, false);
}
}

Expand Down

0 comments on commit d4bb10f

Please sign in to comment.