Browse Source

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 years ago
parent
commit
fa6039e1cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/ColladaExporter.cpp

+ 1 - 1
code/ColladaExporter.cpp

@@ -354,7 +354,7 @@ void ColladaExporter::WriteNode( const aiNode* pNode)
 	for( size_t a = 0; a < pNode->mNumMeshes; ++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();
 
 		PopTag();