mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 20:22:22 +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);
|
||||
});
|
||||
|
||||
if (HMD.active && !HMD.mounted) {
|
||||
print("Starting script, while HMD is active and not mounted...");
|
||||
goAway();
|
||||
}
|
||||
|
||||
|
||||
}()); // END LOCAL_SCOPE
|
||||
|
|
Loading…
Reference in a new issue