Utils: Rename to SceneUtils as they're all scene-bound

This commit is contained in:
Tanish Manku committed 2024-12-06 15:28:46 -08:00
1 parent 7e1952a71c
commit fef49855fe
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ import { QueueNames } from "~/pages/PageEnigma/Queue/QueueNames";
import { fromEngineActions } from "~/pages/PageEnigma/Queue/fromEngineActions";
import { MediaItem } from "~/pages/PageEnigma/models";
import { editorState } from "../signals/engine";
import { Utils } from "./helper";
import { SceneUtils } from "./helper";
import { VideoGeneration } from "./video_generation";
import { MouseControls } from "./keybinds_controls";
import { SaveManager } from "./save_manager";
@@ -147,7 +147,7 @@ class Editor {
// global names of scene entities
camera_name: string;
utils: Utils;
utils: SceneUtils;
videoGeneration: VideoGeneration;
mouse_controls: MouseControls | undefined;
save_manager: SaveManager;
@@ -276,7 +276,7 @@ class Editor {
this.activeScene.timeline = this.timeline;
this.utils = new Utils(this, this.activeScene);
this.utils = new SceneUtils(this, this.activeScene);
this.videoGeneration = new VideoGeneration(this);
this.save_manager = new SaveManager(this);
this.current_frame = 0;
+1 -1
View File
@@ -11,7 +11,7 @@ import { MediaItem } from "~/pages/PageEnigma/models";
import { AssetType } from "~/enums";
import { hideObjectPanel } from "../signals";
export class Utils {
export class SceneUtils {
scene: Scene;
editor: Editor;
constructor(editor: Editor, scene: Scene) {