]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animationplayer.cpp
Fix a stupid error with PixelStore parameter mask
[libs/gl.git] / source / animationplayer.cpp
index 6b5a481f6a74f8da98b138067d803d8aacfbe785..7c693ad2c3eef32ce7ec2a8aa74f4e754d130258 100644 (file)
@@ -130,7 +130,7 @@ void AnimationPlayer::tick_single(Target &target, const Time::TimeDelta &dt)
 
        anim.iterator.dispatch_events(target);
 
-       if(!anim.iterator.is_end())
+       if(anim.iterator.is_end())
                target.animations.clear();
 }
 
@@ -192,6 +192,12 @@ void AnimationPlayer::set_object_uniform(AnimatedObject &obj, const string &name
 }
 
 
+AnimationPlayer::PlayingAnimation::PlayingAnimation(const Animation &a):
+       animation(&a),
+       iterator(*animation)
+{ }
+
+
 AnimationPlayer::Target::Target(AnimatedObject &o):
        object(o),
        armature(0),
@@ -204,11 +210,5 @@ void AnimationPlayer::Target::animation_event(AnimatedObject *, const string &na
                (*i)->animation_event(&object, name, value);
 }
 
-
-AnimationPlayer::PlayingAnimation::PlayingAnimation(const Animation &a):
-       animation(&a),
-       iterator(*animation)
-{ }
-
 } // namespace GL
 } // namespace Msp