Browse Source

Fix typo in OpenAssetImporter.cpp

Rokas Kupstys 7 years ago
parent
commit
3dc0420b43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/ToolCore/Import/OpenAssetImporter.cpp

+ 1 - 1
Source/ToolCore/Import/OpenAssetImporter.cpp

@@ -1007,7 +1007,7 @@ bool OpenAssetImporter::BuildAndSaveAnimations(OutModel* model, const String &an
                     startTime = Min(startTime, (float)channel->mPositionKeys[0].mTime);
                 if (channel->mNumRotationKeys > 0)
                     startTime = Min(startTime, (float)channel->mRotationKeys[0].mTime);
-                if (channel->mScalingKeys > 0)
+                if (channel->mNumScalingKeys > 0)
                     startTime = Min(startTime, (float)channel->mScalingKeys[0].mTime);
             }