Fix: Wrong aiAnimation::mTicksPerSecond for gltf2 imports (fixes #2662)

pull/2666/head
Theak 2019-09-22 09:59:58 +01:00
parent aeecc17482
commit 0e6478c0d4
1 changed files with 1 additions and 1 deletions

View File

@ -1177,7 +1177,7 @@ void glTF2Importer::ImportAnimations(glTF2::Asset& r)
}
}
ai_anim->mDuration = maxDuration;
ai_anim->mTicksPerSecond = (maxNumberOfKeys > 0 && maxDuration > 0) ? (maxNumberOfKeys / (maxDuration/1000)) : 30;
ai_anim->mTicksPerSecond = 0.001;
mScene->mAnimations[i] = ai_anim;
}