From ae18302dae3b7606ef163d6e7aeaaefe838fff69 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Thu, 23 Jan 2025 22:42:19 -0800 Subject: [PATCH] Add a "isCharacter" userdata field to 3JS models for future --- app/pages/PageEnigma/Editor/timeline.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pages/PageEnigma/Editor/timeline.ts b/app/pages/PageEnigma/Editor/timeline.ts index d5ab52215c..356e123097 100644 --- a/app/pages/PageEnigma/Editor/timeline.ts +++ b/app/pages/PageEnigma/Editor/timeline.ts @@ -269,6 +269,10 @@ export class TimeLine { obj.userData["name"] = name; obj.name = name; obj.position.copy(pos); + obj.userData.isCharacter = true; + console.debug("Added character object") + console.debug("object:", obj) + const object_uuid = obj.uuid; this.characters[object_uuid] = ClipGroup.CHARACTER; // TODO: Create a class to make the idea of a character.