diff --git a/crates/bevy_pbr/src/render/mesh.rs b/crates/bevy_pbr/src/render/mesh.rs index bf9d8bbb81afe..86b2d98d3d13a 100644 --- a/crates/bevy_pbr/src/render/mesh.rs +++ b/crates/bevy_pbr/src/render/mesh.rs @@ -218,7 +218,7 @@ pub struct MeshUniform { } impl MeshUniform { - fn new(mesh_transforms: &MeshTransforms, maybe_lightmap_uv_rect: Option) -> Self { + pub fn new(mesh_transforms: &MeshTransforms, maybe_lightmap_uv_rect: Option) -> Self { let (inverse_transpose_model_a, inverse_transpose_model_b) = mesh_transforms.transform.inverse_transpose_3x3(); Self {