Skip to content

Commit

Permalink
Make MaterialPipelineKey<T> fields public (bevyengine#4508)
Browse files Browse the repository at this point in the history
# Objective

Fixes bevyengine#4507. This comment provides a very good explanation: bevyengine#4507 (comment).

## Solution

Make `MaterialPipelineKey` fields public.
  • Loading branch information
Shatur authored and ItsDoot committed Feb 1, 2023
1 parent a4476e6 commit f956102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ impl<M: SpecializedMaterial> Plugin for MaterialPlugin<M> {

#[derive(Eq, PartialEq, Clone, Hash)]
pub struct MaterialPipelineKey<T> {
mesh_key: MeshPipelineKey,
material_key: T,
pub mesh_key: MeshPipelineKey,
pub material_key: T,
}

pub struct MaterialPipeline<M: SpecializedMaterial> {
Expand Down

0 comments on commit f956102

Please sign in to comment.