aboutsummaryrefslogtreecommitdiff
path: root/src/MTools/Anim
diff options
context:
space:
mode:
Diffstat (limited to 'src/MTools/Anim')
-rw-r--r--src/MTools/Anim/MPath.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTools/Anim/MPath.pm b/src/MTools/Anim/MPath.pm
index 910cfb5..27ee976 100644
--- a/src/MTools/Anim/MPath.pm
+++ b/src/MTools/Anim/MPath.pm
@@ -102,7 +102,7 @@ sub start {
my ($self) = @_;
my @points = @{$self -> mget ('path')};
- if (!defined @points || @points <= 0) {return;}
+ if (!@points) {return;}
$self -> {__x} = $points [0] -> [0];
$self -> {__y} = $points [0] -> [1];
my $pacing = new Anim::Pacing::Linear (-duration => $self -> mget ('duration'));