Skip to content

Commit

Permalink
Fix inspect not working after change camera mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdavid committed Jan 13, 2020
1 parent 316abae commit 681bd3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/system/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ function mouseMoveEvent(event) {
mouseLastY = event.y;
}

function onCameraModeUpdated(newMode) {
mode = noMode;
handleModes();
}

function update() {
handleModes();
if (rotatingTowardsTarget) {
Expand Down Expand Up @@ -381,5 +386,7 @@ Controller.mousePressEvent.connect(mousePressEvent);
Controller.mouseReleaseEvent.connect(mouseReleaseEvent);
Controller.mouseMoveEvent.connect(mouseMoveEvent);

Camera.modeUpdated.connect(onCameraModeUpdated);

Script.update.connect(update);
Script.scriptEnding.connect(scriptEnding);

0 comments on commit 681bd3c

Please sign in to comment.