Skip to content

Commit 3b8159f

Browse files
committed
adjust test to use commands
1 parent d659728 commit 3b8159f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_transform/src/hierarchy/hierarchy_maintenance_system.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ mod test {
8787
);
8888

8989
// Parent `e1` to `e2`.
90-
(*world.get_mut::<Parent>(children[0]).unwrap()).0 = children[1];
90+
let mut commands = Commands::default();
91+
commands.push_children(children[1], &[children[0]]);
9192

93+
commands.apply(&mut world, &mut resources);
9294
schedule.run(&mut world, &mut resources);
9395

9496
assert_eq!(

0 commit comments

Comments
 (0)