mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
Move engines to separate folder
This commit is contained in:
1 parent
762d02e40e
commit
70e99a109f
9 files changed
+11
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { deepCopySerializableObjects as deepCopy } from "~/utilities";
|
||||
import { AnimationEngine } from "../animation_engine";
|
||||
import { AnimationEngine } from "../Engines/animation_engine";
|
||||
import AudioEngine from "../audio_engine";
|
||||
import EmotionEngine from "../emotion_engine";
|
||||
import { LipSyncEngine } from "../lip_sync_engine";
|
||||
|
||||
+4
-1
@@ -1,4 +1,4 @@
|
||||
import { AnimationClip } from "../clips/animation_clip";
|
||||
import { AnimationClip } from "../../clips/animation_clip";
|
||||
|
||||
export class AnimationEngine {
|
||||
clips: { [key: string]: AnimationClip } = {};
|
||||
@@ -10,6 +10,7 @@ export class AnimationEngine {
|
||||
}
|
||||
|
||||
load_object(object_uuid: string, media_id: string, clip_name: string) {
|
||||
console.debug("load_object", object_uuid, media_id, clip_name);
|
||||
this.clips[object_uuid + media_id] = new AnimationClip(
|
||||
this.version,
|
||||
media_id,
|
||||
@@ -18,6 +19,8 @@ export class AnimationEngine {
|
||||
1.0,
|
||||
1.0,
|
||||
clip_name,
|
||||
0.0,
|
||||
0.0,
|
||||
);
|
||||
//this.clips[object_uuid + media_id]._load_animation();
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -16,7 +16,7 @@ import TransformEngine from "./transform_engine.js";
|
||||
import EmotionEngine from "./emotion_engine";
|
||||
import { TimeLine } from "./timeline.js";
|
||||
import { LipSyncEngine } from "./lip_sync_engine.js";
|
||||
import { AnimationEngine } from "./animation_engine.js";
|
||||
import { AnimationEngine } from "./Engines/animation_engine.js";
|
||||
import { PointerLockControls } from "three/addons/controls/PointerLockControls.js";
|
||||
import { EditorStates, CameraAspectRatio } from "~/pages/PageEnigma/enums";
|
||||
import { AssetType, ClipGroup } from "~/enums";
|
||||
@@ -221,7 +221,7 @@ class Editor {
|
||||
"" + this.version,
|
||||
this.camera_name,
|
||||
this.updateSurfaceIdAttributeToMesh.bind(this),
|
||||
this.version
|
||||
this.version,
|
||||
);
|
||||
this.activeScene.initialize();
|
||||
this.generating_preview = false;
|
||||
@@ -946,14 +946,14 @@ class Editor {
|
||||
this.render_camera_aspect_ratio === CameraAspectRatio.HORIZONTAL_16_9
|
||||
? 1024
|
||||
: this.render_camera_aspect_ratio ===
|
||||
CameraAspectRatio.VERTICAL_9_16
|
||||
CameraAspectRatio.VERTICAL_9_16
|
||||
? 576
|
||||
: 1000;
|
||||
const height =
|
||||
this.render_camera_aspect_ratio === CameraAspectRatio.HORIZONTAL_16_9
|
||||
? 576
|
||||
: this.render_camera_aspect_ratio ===
|
||||
CameraAspectRatio.VERTICAL_9_16
|
||||
CameraAspectRatio.VERTICAL_9_16
|
||||
? 1024
|
||||
: 1000;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import Scene from "./scene.js";
|
||||
import AudioEngine from "./audio_engine";
|
||||
import TransformEngine from "./transform_engine";
|
||||
import { LipSyncEngine } from "./lip_sync_engine";
|
||||
import { AnimationEngine } from "./animation_engine";
|
||||
import { AnimationEngine } from "./Engines/animation_engine";
|
||||
|
||||
import Queue, {
|
||||
UnionedActionTypes,
|
||||
|
||||
@@ -4,7 +4,7 @@ import { ClipUI } from "../clips/clip_ui";
|
||||
import { EmotionClip } from "../clips/emotion_clip";
|
||||
import { LipSyncClip } from "../clips/lipsync_clip";
|
||||
import { TransformClip } from "../clips/transform_clip";
|
||||
import AnimationEngine from "../Editor/animation_engine";
|
||||
import AnimationEngine from "../Editor/Engines/animation_engine";
|
||||
import AudioEngine from "../Editor/audio_engine";
|
||||
import EmotionEngine from "../Editor/emotion_engine";
|
||||
import LipSyncEngine from "../Editor/lip_sync_engine";
|
||||
|
||||
Reference in new issue
Block a user