From 84a9df97932739b80031a47f3150172d46932578 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 2 Jan 2016 01:12:44 +0100 Subject: [PATCH] Do not discard root node transformations if the root node is named 'bip01' (Bug #3118) --- components/nif/node.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 326e9802f..17b58bd46 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -9,6 +9,8 @@ #include "controller.hpp" #include "base.hpp" +#include + namespace Nif { @@ -118,10 +120,10 @@ struct NiNode : Node children.read(nif); effects.read(nif); - // Discard tranformations for the root node, otherwise some meshes + // Discard transformations for the root node, otherwise some meshes // occasionally get wrong orientation. Only for NiNode-s for now, but // can be expanded if needed. - if (0 == recIndex) + if (0 == recIndex && !Misc::StringUtils::ciEqual(name, "bip01")) { static_cast(this)->trafo = Nif::Transformation::getIdentity(); }