From a8f4b3e66c85d68ece1edcb1026186651ab13c30 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 21 Jun 2010 16:45:12 +0200 Subject: [PATCH] fixed NIF loader problem with NiTriShape as root node --- nifogre/ogre_nif_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifogre/ogre_nif_loader.cpp b/nifogre/ogre_nif_loader.cpp index a7a887c246..8cee7d1862 100644 --- a/nifogre/ogre_nif_loader.cpp +++ b/nifogre/ogre_nif_loader.cpp @@ -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.");