|
@@ -154,9 +154,9 @@ compileAndRun = function(parent, fpsLabel) {
|
|
}
|
|
}
|
|
|
|
|
|
// Update FPS if camera is not a webxr camera
|
|
// Update FPS if camera is not a webxr camera
|
|
- if(!(sceneToRender.activeCamera &&
|
|
|
|
- sceneToRender.activeCamera.getClassName &&
|
|
|
|
- sceneToRender.activeCamera.getClassName() === 'WebXRCamera')) {
|
|
|
|
|
|
+ if(!(scene.activeCamera &&
|
|
|
|
+ scene.activeCamera.getClassName &&
|
|
|
|
+ scene.activeCamera.getClassName() === 'WebXRCamera')) {
|
|
fpsLabel.innerHTML = engine.getFps().toFixed() + " fps";
|
|
fpsLabel.innerHTML = engine.getFps().toFixed() + " fps";
|
|
}
|
|
}
|
|
}.bind(this));
|
|
}.bind(this));
|