Merge pull request #2666 from theakman2/issue_2662

Fix: Wrong aiAnimation::mTicksPerSecond for gltf2 imports (fixes #2662)
pull/2675/head^2
Kim Kulling 2019-09-30 23:10:24 +02:00 committed by GitHub
commit 09d80ff478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1176,7 +1176,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 = 1000.0;
mScene->mAnimations[i] = ai_anim;
}