mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Add a "isCharacter" userdata field to 3JS models for future
This commit is contained in:
1 parent
9ea0bb94ad
commit
ae18302dae
1 file changed
+4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user