Skip to content

Commit f956102

Browse files
ShaturItsDoot
authored andcommitted
Make MaterialPipelineKey<T> fields public (bevyengine#4508)
# Objective Fixes bevyengine#4507. This comment provides a very good explanation: bevyengine#4507 (comment). ## Solution Make `MaterialPipelineKey` fields public.
1 parent a4476e6 commit f956102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_pbr/src/material.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ impl<M: SpecializedMaterial> Plugin for MaterialPlugin<M> {
220220

221221
#[derive(Eq, PartialEq, Clone, Hash)]
222222
pub struct MaterialPipelineKey<T> {
223-
mesh_key: MeshPipelineKey,
224-
material_key: T,
223+
pub mesh_key: MeshPipelineKey,
224+
pub material_key: T,
225225
}
226226

227227
pub struct MaterialPipeline<M: SpecializedMaterial> {

0 commit comments

Comments
 (0)