Skip to content

Commit

Permalink
Make extract_mesh_materials and MaterialBindGroupAllocator public (
Browse files Browse the repository at this point in the history
…#16982)

Fixes #16730

Make the relevant functions public. (`MaterialBindGroupAllocator` itself
was already `pub`)
  • Loading branch information
BenjaminBrienen authored and mockersf committed Jan 3, 2025
1 parent 4f1bc8e commit f32c836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ pub const fn screen_space_specular_transmission_pipeline_key(
}
}

fn extract_mesh_materials<M: Material>(
pub fn extract_mesh_materials<M: Material>(
mut material_instances: ResMut<RenderMaterialInstances<M>>,
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial3d<M>)>>,
) {
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/mesh2d/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl<M: Material2d> Default for RenderMaterial2dInstances<M> {
}
}

fn extract_mesh_materials_2d<M: Material2d>(
pub fn extract_mesh_materials_2d<M: Material2d>(
mut material_instances: ResMut<RenderMaterial2dInstances<M>>,
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial2d<M>), With<Mesh2d>>>,
) {
Expand Down

0 comments on commit f32c836

Please sign in to comment.