浏览代码

In Assimp: fixed a bug in Pretransform Vertices post process step where newly created meshes of different instances of the same original meshes where not referenced appropriately by their parent node

Léo Terziman 12 年之前
父节点
当前提交
586f1646c5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      code/PretransformVertices.cpp

+ 2 - 0
code/PretransformVertices.cpp

@@ -391,6 +391,8 @@ void PretransformVertices::BuildWCSMeshes(std::vector<aiMesh*>& out, aiMesh** in
 				ntz->mBones = reinterpret_cast<aiBone**> (&node->mTransformation);
 
 				out.push_back(ntz);
+
+				node->mMeshes[i] = numIn + out.size() - 1;
 			}
 		}
 	}