]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animationplayer.cpp
Add a missing initializer
[libs/gl.git] / source / animationplayer.cpp
index 6b5a481f6a74f8da98b138067d803d8aacfbe785..a2df4b622d6eba313fd9b71e615e128becb78f14 100644 (file)
@@ -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