Skip to content

Commit c65f292

Browse files
authored
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`
1 parent 3a478ad commit c65f292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/animation/animation_masks.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ fn add_mask_group_control(parent: &mut ChildBuilder, label: &str, width: Val, ma
316316
..default()
317317
},
318318
BorderColor(Color::WHITE),
319+
AnimationControl {
320+
group_id: mask_group_id,
321+
label: *label,
322+
},
319323
))
320324
.with_child((
321325
Text(format!("{:?}", label)),
@@ -330,10 +334,6 @@ fn add_mask_group_control(parent: &mut ChildBuilder, label: &str, width: Val, ma
330334
margin: UiRect::vertical(Val::Px(3.0)),
331335
..default()
332336
},
333-
AnimationControl {
334-
group_id: mask_group_id,
335-
label: *label,
336-
},
337337
));
338338
}
339339
});

0 commit comments

Comments
 (0)