aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/MTools/Anim/MPath.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MTools/Anim/MPath.pm b/src/MTools/Anim/MPath.pm
index db9c9b4..cfb87d0 100644
--- a/src/MTools/Anim/MPath.pm
+++ b/src/MTools/Anim/MPath.pm
@@ -154,8 +154,8 @@ sub __getPoint {
if ($length <= 0)
{
$d = ($d + $length) / $d;
- $x = $d * $x + $points [$i] -> [0];
- $y = $d * $y + $points [$i] -> [1];
+ $x = $d * $vx + $points [$i] -> [0];
+ $y = $d * $vy + $points [$i] -> [1];
$i = @points;
}
}