Skip to content

Commit

Permalink
Update src/tweenable.rs
Browse files Browse the repository at this point in the history
removed another global trigger

Co-authored-by: musjj <72612857+musjj@users.noreply.github.com>
  • Loading branch information
Peepo-Juice and musjj authored Dec 2, 2024
1 parent 6bf2bf4 commit 506f564
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tweenable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,11 +1336,8 @@ impl<T> Tweenable<T> for Delay<T> {
// send regular event
events.send(event);

// trigger all global observers
commands.trigger(event);

// trigger all entity-scoped observers
commands.trigger_targets(event, [entity]);
commands.trigger_targets(event, entity);
}
if let Some(cb) = &self.on_completed {
cb(entity, self);
Expand Down

0 comments on commit 506f564

Please sign in to comment.