Add a "isCharacter" userdata field to 3JS models for future

This commit is contained in:
Tanish Manku committed 2025-01-23 22:42:19 -08:00
1 parent 9ea0bb94ad
commit ae18302dae
1 file changed
+4
+4
View File
@@ -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.