Use the calculated max time for the "all" animation

This commit is contained in:
Chris Robinson 2013-01-09 04:30:32 -08:00
parent 465fd9c8af
commit 015bb0bf1f

View file

@ -424,7 +424,7 @@ void loadResource(Ogre::Resource *resource)
boneiter.moveNext();
}
buildAnimation(skel, "all", ctrls, targets, 0.0f, std::numeric_limits<float>::max());
buildAnimation(skel, "all", ctrls, targets, 0.0f, maxtime);
std::string currentgroup;
TextKeyMap::const_iterator keyiter = textkeys.begin();