mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
Fix animation_masks
example's buttons (#15996)
# Objective Fixes #15995 ## Solution Corrects a mistake made during the example migration in #15591. `AnimationControl` was meant to be on the parent, not the child. So the query in `update_ui` was no longer matching. ## Testing `cargo run --example animation_masks`
This commit is contained in:
parent
3a478ad5c1
commit
c65f2920bb
1 changed files with 4 additions and 4 deletions
|
@ -316,6 +316,10 @@ fn add_mask_group_control(parent: &mut ChildBuilder, label: &str, width: Val, ma
|
|||
..default()
|
||||
},
|
||||
BorderColor(Color::WHITE),
|
||||
AnimationControl {
|
||||
group_id: mask_group_id,
|
||||
label: *label,
|
||||
},
|
||||
))
|
||||
.with_child((
|
||||
Text(format!("{:?}", label)),
|
||||
|
@ -330,10 +334,6 @@ fn add_mask_group_control(parent: &mut ChildBuilder, label: &str, width: Val, ma
|
|||
margin: UiRect::vertical(Val::Px(3.0)),
|
||||
..default()
|
||||
},
|
||||
AnimationControl {
|
||||
group_id: mask_group_id,
|
||||
label: *label,
|
||||
},
|
||||
));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue