mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:04:28 +02:00
Fix cameraUpdateInterval
This commit is contained in:
parent
9f8a6c63cc
commit
218b32e9fb
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@
|
|||
// destroy the camera entity.
|
||||
function spectatorCameraOff() {
|
||||
spectatorFrameRenderConfig.enabled = beginSpectatorFrameRenderConfig.enabled = false;
|
||||
cameraUpdateInterval = Script.clearInterval(cameraUpdateInterval);
|
||||
if (cameraUpdateInterval) {
|
||||
Script.clearInterval(cameraUpdateInterval);
|
||||
cameraUpdateInterval = false;
|
||||
}
|
||||
if (camera) {
|
||||
Entities.deleteEntity(camera);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue