]> git.tdb.fi Git - libs/demoscene.git/commitdiff
Stop the animation when the action ends
authorMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 19:36:01 +0000 (22:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 19:36:01 +0000 (22:36 +0300)
source/animate.cpp
source/animate.h

index a7e406d73ae80c3428b5fe91d214820dffc645bf..1eff05d569d1a09a76be45ea69dde9d09a7a522f 100644 (file)
@@ -53,6 +53,11 @@ void Animate::start(float, float d)
        }
 }
 
+void Animate::end(float)
+{
+       player->stop(*target, *anim);
+}
+
 
 Animate::Loader::Loader(Animate &a, Demo &d):
        DataFile::DerivedObjectLoader<Animate, Action::Loader>(a, d)
index 7c8165c6fcb3ee20bb657d1122ce16e77293c095..ef497fa6b36d56dfaad6fee9fce41488b575b51a 100644 (file)
@@ -36,6 +36,7 @@ public:
        virtual void validate() const;
 
        virtual void start(float, float);
+       virtual void end(float);
 };
 
 } // namespace DemoScene