|
@@ -69,6 +69,12 @@ AssimpAppSequence::AssimpAppSequence(aiAnimation *a) :
|
|
|
}
|
|
|
else
|
|
|
{ // Timing specified in seconds or ms depending on format
|
|
|
+ if (maxEndTime > 1000.0f || mAnim->mDuration > 1000.0f)
|
|
|
+ {
|
|
|
+ timeFactor = 1000.0f; // If it's more than 1000 seconds, assume it's ms.
|
|
|
+ Con::setIntVariable("$Assimp::AnimTiming", 1000);
|
|
|
+ }
|
|
|
+
|
|
|
timeFactor = mClamp(timeFactor, 1, 1000);
|
|
|
minFrameTime /= (F32)timeFactor;
|
|
|
maxEndTime /= (F32)timeFactor;
|