diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 65d935226e..8e1853548a 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -547,7 +547,7 @@ pub const fn screen_space_specular_transmission_pipeline_key( } } -fn extract_mesh_materials( +pub fn extract_mesh_materials( mut material_instances: ResMut>, query: Extract)>>, ) { diff --git a/crates/bevy_sprite/src/mesh2d/material.rs b/crates/bevy_sprite/src/mesh2d/material.rs index 4eb064de20..420de9250f 100644 --- a/crates/bevy_sprite/src/mesh2d/material.rs +++ b/crates/bevy_sprite/src/mesh2d/material.rs @@ -278,7 +278,7 @@ impl Default for RenderMaterial2dInstances { } } -fn extract_mesh_materials_2d( +pub fn extract_mesh_materials_2d( mut material_instances: ResMut>, query: Extract), With>>, ) {