From fef49855fe9db2172b4a58adca0bcb0e1c1a796e Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Fri, 6 Dec 2024 15:28:46 -0800 Subject: [PATCH] Utils: Rename to SceneUtils as they're all scene-bound --- app/pages/PageEnigma/Editor/editor.ts | 6 +++--- app/pages/PageEnigma/Editor/helper.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/pages/PageEnigma/Editor/editor.ts b/app/pages/PageEnigma/Editor/editor.ts index f916b95af4..a762f3ea62 100644 --- a/app/pages/PageEnigma/Editor/editor.ts +++ b/app/pages/PageEnigma/Editor/editor.ts @@ -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; diff --git a/app/pages/PageEnigma/Editor/helper.ts b/app/pages/PageEnigma/Editor/helper.ts index ca39b1eccb..d2b07c0fdc 100644 --- a/app/pages/PageEnigma/Editor/helper.ts +++ b/app/pages/PageEnigma/Editor/helper.ts @@ -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) {