Skip to content

Commit

Permalink
Fix aframe inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Oct 3, 2023
1 parent 39c198c commit 5533d25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/inspect-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AFRAME.registerComponent("inspect-button", {
// initialize in tick so that parent's `tags` component has been initialized
this.initializedInTick = true;
this.el.object3D.addEventListener("holdable-button-down", () => {
this.el.sceneEl.systems["hubs-systems"].cameraSystem.inspect(this.el, 1.5);
this.el.sceneEl.systems["hubs-systems"].cameraSystem.inspect(this.el.object3D, 1.5);
});
this.el.object3D.addEventListener("holdable-button-up", () => {
this.el.sceneEl.systems["hubs-systems"].cameraSystem.uninspect();
Expand Down
2 changes: 1 addition & 1 deletion src/systems/inspect-yourself-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class InspectYourselfSystem {
if (!scene.is("entered")) return;
if (userinput.get(paths.actions.startInspectingSelf) && !isLockedDownDemoRoom()) {
const rig = document.getElementById("avatar-rig");
cameraSystem.inspect(rig, 1.5);
cameraSystem.inspect(rig.object3D, 1.5);
}
}
}

0 comments on commit 5533d25

Please sign in to comment.