aboutsummaryrefslogtreecommitdiff
path: root/src/MTools/Anim/MPath.pm
diff options
context:
space:
mode:
Diffstat (limited to 'src/MTools/Anim/MPath.pm')
-rw-r--r--src/MTools/Anim/MPath.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/MTools/Anim/MPath.pm b/src/MTools/Anim/MPath.pm
index 6d73cff..f6213f7 100644
--- a/src/MTools/Anim/MPath.pm
+++ b/src/MTools/Anim/MPath.pm
@@ -117,12 +117,13 @@ sub start {
-resources => [
$animationpath,
-command => sub { $self -> __event (@_)},
- -endcommand => sub {$self -> notify ('ANIMATION_END');
- $self -> {__animation} = undef;},
+ -endcommand => sub {$self -> {__animation} = undef;
+ $self -> notify ('ANIMATION_END');
+ },
],
-stopcommand => sub {
- $self -> notify ('ANIMATION_ABORD', $self -> __getPoint ($self -> {__percentage}));
$self -> {__animation} = undef;
+ $self -> notify ('ANIMATION_ABORD', $self -> __getPoint ($self -> {__percentage}));
},
-loop => $self -> mget ('loop'),
);