mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 01:22:25 +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;
|
||||
}
|
||||
|
||||
function onCameraModeUpdated(newMode) {
|
||||
mode = noMode;
|
||||
handleModes();
|
||||
}
|
||||
|
||||
function update() {
|
||||
handleModes();
|
||||
if (rotatingTowardsTarget) {
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue