From b7867d6f0acf2a167581d8478816823f7a85371b Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 25 Mar 2015 05:29:00 +0100 Subject: [PATCH] Stop warning about unused nif properties --- components/nif/node.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/nif/node.cpp b/components/nif/node.cpp index fb68da548..d99d157ae 100644 --- a/components/nif/node.cpp +++ b/components/nif/node.cpp @@ -38,7 +38,10 @@ void Node::getProperties(const Nif::NiTexturingProperty *&texprop, wireprop = static_cast(pr); else if (pr->recType == Nif::RC_NiStencilProperty) stencilprop = static_cast(pr); - else + // the following are unused by the MW engine + else if (pr->recType != Nif::RC_NiFogProperty + && pr->recType != Nif::RC_NiDitherProperty + && pr->recType != Nif::RC_NiShadeProperty) std::cerr<< "Unhandled property type: "<recName <