Added parsing of Collada mesh names.
parent
a6ddce7758
commit
a540c6255c
|
@ -1493,6 +1493,13 @@ void ColladaParser::ReadGeometryLibrary()
|
|||
Mesh* mesh = new Mesh;
|
||||
mMeshLibrary[id] = mesh;
|
||||
|
||||
// read the mesh name if it exists
|
||||
const int nameIndex = TestAttribute("name");
|
||||
if(nameIndex != -1)
|
||||
{
|
||||
mesh->mName = mReader->getAttributeValue(nameIndex);
|
||||
}
|
||||
|
||||
// read on from there
|
||||
ReadGeometry( mesh);
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue