Skip to content

Commit 43b8fbd

Browse files
authored
Unrequire VisibilityClass from Node (#17918)
# Objective The UI doesn't use `ViewVisibility` so it doesn't do anything. ## Solution Remove it.
1 parent 0fca693 commit 43b8fbd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/bevy_render/src/view/visibility/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl InheritedVisibility {
129129

130130
/// A bucket into which we group entities for the purposes of visibility.
131131
///
132-
/// Bevy's various rendering subsystems (3D, 2D, UI, etc.) want to be able to
132+
/// Bevy's various rendering subsystems (3D, 2D, etc.) want to be able to
133133
/// quickly winnow the set of entities to only those that the subsystem is
134134
/// tasked with rendering, to avoid spending time examining irrelevant entities.
135135
/// At the same time, Bevy wants the [`check_visibility`] system to determine

crates/bevy_ui/src/ui_node.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use bevy_reflect::prelude::*;
77
use bevy_render::{
88
camera::{Camera, RenderTarget},
99
view::Visibility,
10-
view::VisibilityClass,
1110
};
1211
use bevy_sprite::BorderRect;
1312
use bevy_transform::components::Transform;
@@ -331,7 +330,6 @@ impl From<Vec2> for ScrollPosition {
331330
ScrollPosition,
332331
Transform,
333332
Visibility,
334-
VisibilityClass,
335333
ZIndex
336334
)]
337335
#[reflect(Component, Default, PartialEq, Debug, Clone)]

0 commit comments

Comments
 (0)