Explorar o código

Merge pull request #2666 from theakman2/issue_2662

Fix: Wrong aiAnimation::mTicksPerSecond for gltf2 imports (fixes #2662)
Kim Kulling %!s(int64=6) %!d(string=hai) anos
pai
achega
09d80ff478
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/glTF2/glTF2Importer.cpp

+ 1 - 1
code/glTF2/glTF2Importer.cpp

@@ -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;
     }