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 e79ba73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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,9 @@ 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 e79ba73

Please sign in to comment.