mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Fix broken mesh2d (#15838)
Forgot to clean this up when I was still trying to figure out what was broken. Closes #15835.
This commit is contained in:
parent
a06802a66e
commit
da211ee314
1 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,7 @@ use bevy_ecs::{
|
|||
};
|
||||
use bevy_math::FloatOrd;
|
||||
use bevy_reflect::{prelude::ReflectDefault, Reflect};
|
||||
use bevy_render::sync_world::{MainEntity, MainEntityHashMap};
|
||||
use bevy_render::sync_world::MainEntityHashMap;
|
||||
use bevy_render::view::RenderVisibleEntities;
|
||||
use bevy_render::{
|
||||
mesh::{MeshVertexBufferLayoutRef, RenderMesh},
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue