Skip to content

Commit

Permalink
Remove note about specific hierarchical shortcomings
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeForceZero committed Nov 13, 2024
1 parent a4d43a5 commit 950db82
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/bevy_ui/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ pub fn ui_layout_system(
.iter()
.for_each(|(entity, maybe_parent)| {
if let Some(parent) = maybe_parent {
// Note: This does not cover the case where a parent's Node component was removed.
// Users are responsible for fixing hierarchies if they do that (it is not recommended).
// Detecting it here would be a permanent perf burden on the hot path.
if parent.is_changed() && !ui_children.is_ui_node(parent.get()) {
warn!(
"Node ({entity}) is in a non-UI entity hierarchy. You are using an entity \
Expand Down

0 comments on commit 950db82

Please sign in to comment.