mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:39:40 +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
1 changed files with 8 additions and 8 deletions
|
@ -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,
|
texprop, matprop, alphaprop,
|
||||||
vertprop, zprop, specprop);
|
vertprop, zprop, specprop);
|
||||||
if(matname.length() > 0)
|
if(matname.length() > 0)
|
||||||
|
@ -1001,12 +1001,12 @@ class NIFMeshLoader : Ogre::ManualResourceLoader
|
||||||
}
|
}
|
||||||
|
|
||||||
bool findTriShape(Ogre::Mesh *mesh, const Nif::Node *node,
|
bool findTriShape(Ogre::Mesh *mesh, const Nif::Node *node,
|
||||||
const Nif::NiTexturingProperty *texprop=NULL,
|
const Nif::NiTexturingProperty *texprop,
|
||||||
const Nif::NiMaterialProperty *matprop=NULL,
|
const Nif::NiMaterialProperty *matprop,
|
||||||
const Nif::NiAlphaProperty *alphaprop=NULL,
|
const Nif::NiAlphaProperty *alphaprop,
|
||||||
const Nif::NiVertexColorProperty *vertprop=NULL,
|
const Nif::NiVertexColorProperty *vertprop,
|
||||||
const Nif::NiZBufferProperty *zprop=NULL,
|
const Nif::NiZBufferProperty *zprop,
|
||||||
const Nif::NiSpecularProperty *specprop=NULL)
|
const Nif::NiSpecularProperty *specprop)
|
||||||
{
|
{
|
||||||
// Scan the property list for material information
|
// Scan the property list for material information
|
||||||
const Nif::PropertyList &proplist = node->props;
|
const Nif::PropertyList &proplist = node->props;
|
||||||
|
@ -1081,7 +1081,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
const Nif::Node *node = dynamic_cast<const Nif::Node*>(nif->getRecord(0));
|
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)
|
void createMeshes(const Nif::Node *node, MeshInfoList &meshes, int flags=0)
|
||||||
|
|
Loading…
Reference in a new issue