Skip to content

Commit

Permalink
Widen type for parameter children in UiSurface::update_children
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeForceZero committed Apr 3, 2024
1 parent d33f8a4 commit b0035bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/bevy_ui/src/layout/ui_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use taffy::Taffy;

use bevy_ecs::entity::{Entity, EntityHashMap};
use bevy_ecs::prelude::Resource;
use bevy_hierarchy::Children;
use bevy_math::UVec2;
use bevy_utils::default;
use bevy_utils::tracing::warn;
Expand Down Expand Up @@ -91,7 +90,7 @@ impl UiSurface {
}

/// Update the children of the taffy node corresponding to the given [`Entity`].
pub fn update_children(&mut self, entity: Entity, children: &Children) {
pub fn update_children(&mut self, entity: Entity, children: &[Entity]) {
let mut taffy_children = Vec::with_capacity(children.len());
for child in children {
if let Some(taffy_node) = self.entity_to_taffy.get(child) {
Expand Down

0 comments on commit b0035bb

Please sign in to comment.