-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] - Mesh vertex attributes for skinning and animation #1831
Conversation
crates/bevy_render/src/mesh/mesh.rs
Outdated
@@ -204,16 +208,26 @@ impl From<&Indices> for IndexFormat { | |||
} | |||
|
|||
// TODO: allow values to be unloaded after been submitting to the GPU to conserve memory | |||
#[derive(Debug, TypeUuid, Clone)] | |||
#[derive(Debug, TypeUuid, Clone, Reflect)] |
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.
If Reflect is only being added for your animation system, can we just add it in the animation pr instead? Otherwise this impl seems a bit pointless / I probably wouldn't include it. I think requiring "empty reflect impls" is something thats worth discussing in the animation pr.
202ed1d
to
ca0d0a5
Compare
Just scoped this down to adding the relevant attribute names. I also removed the Ushort4 addition because we added all of the variants recently (and changed naming conventions to match the new wgpu naming conventions). |
bors r+ |
Required by #1429, - Adds the `Ushort4` vertex attribute for joint indices - `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF - impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect) - impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
Pull request successfully merged into main. Build succeeded: |
Required by bevyengine#1429, - Adds the `Ushort4` vertex attribute for joint indices - `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF - impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect) - impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
Required by bevyengine#1429, - Adds the `Ushort4` vertex attribute for joint indices - `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF - impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect) - impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
Required by bevyengine#1429, - Adds the `Ushort4` vertex attribute for joint indices - `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF - impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect) - impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
Required by #1429,
Ushort4
vertex attribute for joint indicesMesh::ATTRIBUTE_JOINT_WEIGHT
andMesh::ATTRIBUTE_JOINT_INDEX
to import vertex attributes related to skinning from GLTFDefault
forMesh
a empty triangle mesh is created (needed by reflect)Reflect
forMesh
all attributes are ignored (needed by the animation system)