mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +02:00
Take timeScale into account during interps & setCurrentFrame()
This commit is contained in:
parent
54aa0677f6
commit
77b857031b
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ void AnimClip::loadURL(const std::string& url) {
|
||||||
|
|
||||||
void AnimClip::setCurrentFrameInternal(float frame) {
|
void AnimClip::setCurrentFrameInternal(float frame) {
|
||||||
const float dt = 0.0f;
|
const float dt = 0.0f;
|
||||||
_frame = accumulateTime(frame, dt);
|
_frame = accumulateTime(frame * _timeScale, dt);
|
||||||
}
|
}
|
||||||
|
|
||||||
float AnimClip::accumulateTime(float frame, float dt) const {
|
float AnimClip::accumulateTime(float frame, float dt) const {
|
||||||
|
|
Loading…
Reference in a new issue