2
0
Эх сурвалжийг харах

Bugfix: Collada Exporter writes proper mesh references now - that makes static scenes work just fine

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1164 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
ulfjorensen 13 жил өмнө
parent
commit
fa6039e1cb

+ 1 - 1
code/ColladaExporter.cpp

@@ -354,7 +354,7 @@ void ColladaExporter::WriteNode( const aiNode* pNode)
 	for( size_t a = 0; a < pNode->mNumMeshes; ++a )
 	for( size_t a = 0; a < pNode->mNumMeshes; ++a )
 	{
 	{
 		// const aiMesh* mesh = mScene->mMeshes[pNode->mMeshes[a]];
 		// const aiMesh* mesh = mScene->mMeshes[pNode->mMeshes[a]];
-		mOutput << startstr << "<instance_geometry url=\"#" << GetMeshId( a) << "\">" << endstr;
+		mOutput << startstr << "<instance_geometry url=\"#" << GetMeshId( pNode->mMeshes[a]) << "\">" << endstr;
 		PushTag();
 		PushTag();
 
 
 		PopTag();
 		PopTag();