mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Use the full unique mesh name for the material instead of the NIF name
This commit is contained in:
parent
4e1e0eaf62
commit
2f14f26b96
@ -993,7 +993,7 @@ class NIFMeshLoader : Ogre::ManualResourceLoader
|
||||
}
|
||||
}
|
||||
|
||||
std::string matname = NIFMaterialLoader::getMaterial(shape, mName, mGroup,
|
||||
std::string matname = NIFMaterialLoader::getMaterial(shape, mesh->getName(), mGroup,
|
||||
texprop, matprop, alphaprop,
|
||||
vertprop, zprop, specprop);
|
||||
if(matname.length() > 0)
|
||||
@ -1001,12 +1001,12 @@ class NIFMeshLoader : Ogre::ManualResourceLoader
|
||||
}
|
||||
|
||||
bool findTriShape(Ogre::Mesh *mesh, const Nif::Node *node,
|
||||
const Nif::NiTexturingProperty *texprop=NULL,
|
||||
const Nif::NiMaterialProperty *matprop=NULL,
|
||||
const Nif::NiAlphaProperty *alphaprop=NULL,
|
||||
const Nif::NiVertexColorProperty *vertprop=NULL,
|
||||
const Nif::NiZBufferProperty *zprop=NULL,
|
||||
const Nif::NiSpecularProperty *specprop=NULL)
|
||||
const Nif::NiTexturingProperty *texprop,
|
||||
const Nif::NiMaterialProperty *matprop,
|
||||
const Nif::NiAlphaProperty *alphaprop,
|
||||
const Nif::NiVertexColorProperty *vertprop,
|
||||
const Nif::NiZBufferProperty *zprop,
|
||||
const Nif::NiSpecularProperty *specprop)
|
||||
{
|
||||
// Scan the property list for material information
|
||||
const Nif::PropertyList &proplist = node->props;
|
||||
@ -1081,7 +1081,7 @@ public:
|
||||
}
|
||||
|
||||
const Nif::Node *node = dynamic_cast<const Nif::Node*>(nif->getRecord(0));
|
||||
findTriShape(mesh, node);
|
||||
findTriShape(mesh, node, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
void createMeshes(const Nif::Node *node, MeshInfoList &meshes, int flags=0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user