]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/animate.cpp
Stop the animation when the action ends
[libs/demoscene.git] / source / animate.cpp
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)