Skip to content

Commit

Permalink
Make the fields of the Material2dKey public (bevyengine#5212)
Browse files Browse the repository at this point in the history
# Objective

Make it easier to create pipelines derived from the `Material2dPipeline`. Currently this is made difficult because the fields of `Material2dKey` are private.

## Solution

Make the fields public.
  • Loading branch information
TethysSvensson authored and ItsDoot committed Feb 1, 2023
1 parent eff3f71 commit ee7b4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_sprite/src/mesh2d/material.rs
Expand Up @@ -216,8 +216,8 @@ pub struct Material2dPipeline<M: SpecializedMaterial2d> {

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

impl<M: SpecializedMaterial2d> SpecializedMeshPipeline for Material2dPipeline<M> {
Expand Down

0 comments on commit ee7b4bf

Please sign in to comment.