-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - gltf: add a name to nodes without names #4396
Conversation
be4311a
to
6fed02c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that this works and fixes the AnimatedTriangle.gltf
glTF sample model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on board!
bors r+ |
# Objective - Animation is using `Name` to be able to address nodes in an entity free way - When loading random animated gltf files, I noticed some had animations without names sometimes ## Solution - Add default names to all nodes
Not blocking, but for scenes with thousands of nodes, allocating strings for each node for each instance of the scene seems like the wrong direction. Maybe (ultimately) "scene entity names" should be tied to the asset and looked up when needed? Or alternatively, we could use copy-on-write strings for names (I didn't mention rust's |
# Objective - Animation is using `Name` to be able to address nodes in an entity free way - When loading random animated gltf files, I noticed some had animations without names sometimes ## Solution - Add default names to all nodes
# Objective - Animation is using `Name` to be able to address nodes in an entity free way - When loading random animated gltf files, I noticed some had animations without names sometimes ## Solution - Add default names to all nodes
Objective
Name
to be able to address nodes in an entity free waySolution