浏览代码

Merge pull request #3330 from infosia/bad_nodeanim_ptr

fix invalid pointer for bone animation
Kim Kulling 5 年之前
父节点
当前提交
44fd987d57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/Common/Importer.cpp

+ 1 - 1
code/Common/Importer.cpp

@@ -1174,7 +1174,7 @@ void Importer::GetMemoryRequirements(aiMemoryInfo& in) const {
 
         // add all bone anims
         for (unsigned int a = 0; a < pc->mNumChannels; ++a) {
-            const aiNodeAnim* pc2 = pc->mChannels[i];
+            const aiNodeAnim* pc2 = pc->mChannels[a];
             in.animations += sizeof(aiNodeAnim);
             in.animations += pc2->mNumPositionKeys * sizeof(aiVectorKey);
             in.animations += pc2->mNumScalingKeys * sizeof(aiVectorKey);