]> git.tdb.fi Git - libs/demoscene.git/commitdiff
Fix initialization issues in the Animate action
authorMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 19:35:44 +0000 (22:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 19:35:44 +0000 (22:35 +0300)
source/animate.cpp
source/animate.h

index c7eed389dd917e6436ca685c5a74ff84cad723dc..a7e406d73ae80c3428b5fe91d214820dffc645bf 100644 (file)
@@ -8,14 +8,17 @@ namespace DemoScene {
 
 Animate::Animate():
        target(0),
+       target_obj(0),
        anim(0),
        stacked(false),
        player(0)
 { }
 
-Animate::Animate(GL::Placeable &t, const GL::Animation &a, GL::AnimationPlayer &p):
+Animate::Animate(GL::Placeable &t, const GL::Animation &a, GL::AnimationPlayer &p, bool s):
        target(&t),
+       target_obj(0),
        anim(&a),
+       stacked(s),
        player(&p)
 { }
 
index 50e279c57e67ae618f95bc6ea5efa70efbbbb569..7c8165c6fcb3ee20bb657d1122ce16e77293c095 100644 (file)
@@ -31,7 +31,7 @@ private:
 
 public:
        Animate();
-       Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &);
+       Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &, bool = false);
 
        virtual void validate() const;