git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1164 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
@@ -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();