mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Removed redundant visibility check (#2311)
Since `visible_entities_system` already checks `Visiblie::is_visible` for each entity and requires it to be `true`, there's no reason to verify visibility in `PassNode::prepare` which consumes entities produced by the system.
This commit is contained in:
parent
27d809fd23
commit
a404eb2acf
1 changed files with 0 additions and 6 deletions
|
@ -3,7 +3,6 @@ use crate::{
|
|||
draw::{Draw, RenderCommand},
|
||||
pass::{ClearColor, LoadOp, PassDescriptor, TextureAttachment},
|
||||
pipeline::{IndexFormat, PipelineDescriptor},
|
||||
prelude::Visible,
|
||||
render_graph::{Node, ResourceSlotInfo, ResourceSlots},
|
||||
renderer::{
|
||||
BindGroupId, BufferId, RenderContext, RenderResourceBindings, RenderResourceContext,
|
||||
|
@ -160,11 +159,6 @@ where
|
|||
continue;
|
||||
};
|
||||
|
||||
if let Some(visible) = world.get::<Visible>(visible_entity.entity) {
|
||||
if !visible.is_visible {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
for render_command in draw.render_commands.iter() {
|
||||
commands.push(render_command.clone());
|
||||
// whenever a new pipeline is set, ensure the relevant camera bind groups
|
||||
|
|
Loading…
Reference in a new issue