Collada mesh name is copied from id only if there was no name attribute in the <geometry> node.
parent
57e34cc90a
commit
d23430c4bd
|
@ -521,10 +521,13 @@ void ColladaLoader::BuildMeshesForNode( const ColladaParser& pParser, const Coll
|
||||||
|
|
||||||
// assign the material index
|
// assign the material index
|
||||||
dstMesh->mMaterialIndex = matIdx;
|
dstMesh->mMaterialIndex = matIdx;
|
||||||
|
if(dstMesh->mName.length == 0)
|
||||||
|
{
|
||||||
dstMesh->mName = mid.mMeshOrController;
|
dstMesh->mName = mid.mMeshOrController;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// now place all mesh references we gathered in the target node
|
// now place all mesh references we gathered in the target node
|
||||||
pTarget->mNumMeshes = newMeshRefs.size();
|
pTarget->mNumMeshes = newMeshRefs.size();
|
||||||
|
|
Loading…
Reference in New Issue