bevy_render::mesh

Function inherit_weights

Source
pub fn inherit_weights(
    morph_nodes: Query<'_, '_, (&Children, &MorphWeights), (Without<Mesh3d>, Changed<MorphWeights>)>,
    morph_primitives: Query<'_, '_, &mut MeshMorphWeights, With<Mesh3d>>,
)
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.