mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
Fix inspect not working after change camera mode
This commit is contained in:
parent
316abaeedc
commit
681bd3cb1e
1 changed files with 7 additions and 0 deletions
|
@ -354,6 +354,11 @@ function mouseMoveEvent(event) {
|
||||||
mouseLastY = event.y;
|
mouseLastY = event.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onCameraModeUpdated(newMode) {
|
||||||
|
mode = noMode;
|
||||||
|
handleModes();
|
||||||
|
}
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
handleModes();
|
handleModes();
|
||||||
if (rotatingTowardsTarget) {
|
if (rotatingTowardsTarget) {
|
||||||
|
@ -381,5 +386,7 @@ Controller.mousePressEvent.connect(mousePressEvent);
|
||||||
Controller.mouseReleaseEvent.connect(mouseReleaseEvent);
|
Controller.mouseReleaseEvent.connect(mouseReleaseEvent);
|
||||||
Controller.mouseMoveEvent.connect(mouseMoveEvent);
|
Controller.mouseMoveEvent.connect(mouseMoveEvent);
|
||||||
|
|
||||||
|
Camera.modeUpdated.connect(onCameraModeUpdated);
|
||||||
|
|
||||||
Script.update.connect(update);
|
Script.update.connect(update);
|
||||||
Script.scriptEnding.connect(scriptEnding);
|
Script.scriptEnding.connect(scriptEnding);
|
||||||
|
|
Loading…
Reference in a new issue