diff --git a/examples/animation/animation_masks.rs b/examples/animation/animation_masks.rs index 1382a8f031dbf..08e3b365c95f2 100644 --- a/examples/animation/animation_masks.rs +++ b/examples/animation/animation_masks.rs @@ -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, - }, )); } });