Collada mesh name is copied from id only if there was no name attribute in the <geometry> node.
This commit is contained in:
@@ -521,7 +521,10 @@ void ColladaLoader::BuildMeshesForNode( const ColladaParser& pParser, const Coll
|
||||
|
||||
// assign the material index
|
||||
dstMesh->mMaterialIndex = matIdx;
|
||||
dstMesh->mName = mid.mMeshOrController;
|
||||
if(dstMesh->mName.length == 0)
|
||||
{
|
||||
dstMesh->mName = mid.mMeshOrController;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user