Compare commits

...
2 changed files with 5 additions and 12 deletions
@@ -1300,17 +1300,6 @@ class Editor {
}
}
if (this.cam_obj == undefined) {
this.cam_obj = this.activeScene.get_object_by_name(this.camera_name);
if (this.outliner_feature_flag) {
const result = this.sceneManager?.render_outliner(
this.timeline.characters,
);
if (result) outlinerState.items.value = result.items;
}
}
if (this.clock == undefined || this.renderer == undefined) {
return;
}
@@ -220,8 +220,12 @@ class FreeCam extends EventDispatcher {
this.updateMovementVector();
}
isStationary() {
return this.moveVector.distanceTo(new Vector3(0, 0, 0)) === 0;
}
update(delta: number) {
if (!this.enabled) {
if (!this.enabled || this.isStationary()) {
return;
}