Function mark_3d_meshes_as_changed_if_their_assets_changed

Source
pub fn mark_3d_meshes_as_changed_if_their_assets_changed(
    meshes_3d: Query<'_, '_, &mut Mesh3d>,
    mesh_asset_events: EventReader<'_, '_, AssetEvent<Mesh>>,
)
Expand description

A system that marks a Mesh3d as changed if the associated Mesh asset has changed.

This is needed because the systems that extract meshes, such as extract_meshes_for_gpu_building, write some metadata about the mesh (like the location within each slab) into the GPU structures that they build that needs to be kept up to date if the contents of the mesh change.