Take timeScale into account during interps & setCurrentFrame()

This commit is contained in:
Anthony J. Thibault 2015-08-31 11:01:15 -07:00
parent 54aa0677f6
commit 77b857031b

View file

@ -75,7 +75,7 @@ void AnimClip::loadURL(const std::string& url) {
void AnimClip::setCurrentFrameInternal(float frame) {
const float dt = 0.0f;
_frame = accumulateTime(frame, dt);
_frame = accumulateTime(frame * _timeScale, dt);
}
float AnimClip::accumulateTime(float frame, float dt) const {