Skip to content

Commit

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

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

## Solution

Make `MaterialPipelineKey` fields public.
  • Loading branch information
Shatur committed Apr 18, 2022
1 parent 8d67832 commit 06d709b
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 06d709b

Please sign in to comment.