1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

fixed NIF loader problem with NiTriShape as root node

This commit is contained in:
Marc Zinnschlag 2010-06-21 16:45:12 +02:00
parent 7e4f655939
commit a8f4b3e66c

View File

@ -604,7 +604,7 @@ void NIFLoader::loadResource(Resource *resource)
Record *r = nif.getRecord(0);
assert(r != NULL);
if(r->recType != RC_NiNode)
if(r->recType != RC_NiNode && r->recType != RC_NiTriShape)
{
warn("First record in file was not a NiNode, but a " +
r->recName.toString() + ". Skipping file.");