Skip to content

Commit

Permalink
Closes #15835.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Oct 10, 2024
1 parent a06802a commit 1027670
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/bevy_sprite/src/mesh2d/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,7 @@ impl<P: PhaseItem, M: Material2d, const I: usize> RenderCommand<P>
) -> RenderCommandResult {
let materials = materials.into_inner();
let material_instances = material_instances.into_inner();
let Some(material_instance) = material_instances.get(&MainEntity::from(item.entity()))
else {
let Some(material_instance) = material_instances.get(&item.main_entity()) else {
return RenderCommandResult::Skip;
};
let Some(material2d) = materials.get(*material_instance) else {
Expand Down

0 comments on commit 1027670

Please sign in to comment.