mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
go into away if the application starts in HMD mode but it's not mounted
This commit is contained in:
parent
73e3e993fb
commit
f7228993a5
1 changed files with 6 additions and 0 deletions
|
@ -308,4 +308,10 @@ Script.scriptEnding.connect(function () {
|
||||||
Controller.keyPressEvent.disconnect(maybeGoActive);
|
Controller.keyPressEvent.disconnect(maybeGoActive);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (HMD.active && !HMD.mounted) {
|
||||||
|
print("Starting script, while HMD is active and not mounted...");
|
||||||
|
goAway();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}()); // END LOCAL_SCOPE
|
}()); // END LOCAL_SCOPE
|
||||||
|
|
Loading…
Reference in a new issue