diff options
author | ribet | 2007-06-06 06:22:04 +0000 |
---|---|---|
committer | ribet | 2007-06-06 06:22:04 +0000 |
commit | cc5a8f9ba0bd6bb53d1629e45c781be965799435 (patch) | |
tree | 56b5b54cedd8ec64003638a7bb798a7e2f127378 /src/MTools/Anim/MPath.pm | |
parent | 13d58fea0c447d967c17523bcb95b606ff4feae2 (diff) | |
download | mtc-cc5a8f9ba0bd6bb53d1629e45c781be965799435.zip mtc-cc5a8f9ba0bd6bb53d1629e45c781be965799435.tar.gz mtc-cc5a8f9ba0bd6bb53d1629e45c781be965799435.tar.bz2 mtc-cc5a8f9ba0bd6bb53d1629e45c781be965799435.tar.xz |
Code plus polyvalent
Diffstat (limited to 'src/MTools/Anim/MPath.pm')
-rw-r--r-- | src/MTools/Anim/MPath.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/MTools/Anim/MPath.pm b/src/MTools/Anim/MPath.pm index d24e740..910cfb5 100644 --- a/src/MTools/Anim/MPath.pm +++ b/src/MTools/Anim/MPath.pm @@ -177,7 +177,14 @@ sub __event { } for (my $i = 0; $i < @targets; $i++) { - $targets [$i] -> translate ($x - $self -> {__x}, $y - $self -> {__y}); + if (ref($targets [$i]) eq '') + { + translate ($targets [$i], $x - $self -> {__x}, $y - $self -> {__y}); + } + else + { + $targets [$i] -> translate ($x - $self -> {__x}, $y - $self -> {__y}); + } } $self -> {__x} = $x; $self -> {__y} = $y; |