diff options
author | marion | 2009-02-27 09:46:25 +0000 |
---|---|---|
committer | marion | 2009-02-27 09:46:25 +0000 |
commit | edcfd2df9da29ec26f13a7b481be6a528b850ba4 (patch) | |
tree | 9674519699865a44db0cc3b26f7685d34a7cbef9 /src/MTools/Anim/MPath.pm | |
parent | 0dc4132db1a4acc83869bbdbc420d9b027248881 (diff) | |
download | mtc-edcfd2df9da29ec26f13a7b481be6a528b850ba4.zip mtc-edcfd2df9da29ec26f13a7b481be6a528b850ba4.tar.gz mtc-edcfd2df9da29ec26f13a7b481be6a528b850ba4.tar.bz2 mtc-edcfd2df9da29ec26f13a7b481be6a528b850ba4.tar.xz |
ajout de la méthode complete pour MScalor et MPath
Diffstat (limited to 'src/MTools/Anim/MPath.pm')
-rw-r--r-- | src/MTools/Anim/MPath.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/MTools/Anim/MPath.pm b/src/MTools/Anim/MPath.pm index f6213f7..57fd846 100644 --- a/src/MTools/Anim/MPath.pm +++ b/src/MTools/Anim/MPath.pm @@ -138,6 +138,13 @@ sub stop { } } +sub complete { + my ($self) = @_; + return if !$self->isRunning(); + $self->__event(100); + $self->stop(); +} + sub __getPoint { my ($self, $percentage) = @_; my @points = @{$self -> mget ('path')}; |