Make MaterialPipelineKey<T> fields public (#4508)

# Objective

Fixes #4507. This comment provides a very good explanation: https://github.com/bevyengine/bevy/issues/4507#issuecomment-1100905685.

## Solution

Make `MaterialPipelineKey` fields public.
This commit is contained in:
Hennadii Chernyshchyk 2022-04-18 10:11:14 +00:00
parent 8d67832dfa
commit 06d709b178

View file

@ -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> {