Skip to content

Commit f32c836

Browse files
BenjaminBrienenmockersf
authored andcommitted
Make extract_mesh_materials and MaterialBindGroupAllocator public (#16982)
Fixes #16730 Make the relevant functions public. (`MaterialBindGroupAllocator` itself was already `pub`)
1 parent 4f1bc8e commit f32c836

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/bevy_pbr/src/material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ pub const fn screen_space_specular_transmission_pipeline_key(
547547
}
548548
}
549549

550-
fn extract_mesh_materials<M: Material>(
550+
pub fn extract_mesh_materials<M: Material>(
551551
mut material_instances: ResMut<RenderMaterialInstances<M>>,
552552
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial3d<M>)>>,
553553
) {

crates/bevy_sprite/src/mesh2d/material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl<M: Material2d> Default for RenderMaterial2dInstances<M> {
278278
}
279279
}
280280

281-
fn extract_mesh_materials_2d<M: Material2d>(
281+
pub fn extract_mesh_materials_2d<M: Material2d>(
282282
mut material_instances: ResMut<RenderMaterial2dInstances<M>>,
283283
query: Extract<Query<(Entity, &ViewVisibility, &MeshMaterial2d<M>), With<Mesh2d>>>,
284284
) {

0 commit comments

Comments
 (0)