bevy_render::mesh::morph

Function inherit_weights

Source
pub fn inherit_weights(
    morph_nodes: Query<'_, '_, (&Children, &MorphWeights), (Without<Handle<Mesh>>, Changed<MorphWeights>)>,
    morph_primitives: Query<'_, '_, &mut MeshMorphWeights, With<Handle<Mesh>>>,
)
Expand description

Bevy meshes are gltf primitives, MorphWeights on the bevy node entity should be inherited by children meshes.

Only direct children are updated, to fulfill the expectations of glTF spec.