1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 22:19:40 +00:00

Do not discard root node transformations if the root node is named 'bip01' (Bug #3118)

This commit is contained in:
scrawl 2016-01-02 01:12:44 +01:00
parent 1905f0bf2d
commit 3ebfb47983

View file

@ -9,6 +9,8 @@
#include "controller.hpp" #include "controller.hpp"
#include "base.hpp" #include "base.hpp"
#include <components/misc/stringops.hpp>
namespace Nif namespace Nif
{ {
@ -118,10 +120,10 @@ struct NiNode : Node
children.read(nif); children.read(nif);
effects.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 // occasionally get wrong orientation. Only for NiNode-s for now, but
// can be expanded if needed. // can be expanded if needed.
if (0 == recIndex) if (0 == recIndex && !Misc::StringUtils::ciEqual(name, "bip01"))
{ {
static_cast<Nif::Node*>(this)->trafo = Nif::Transformation::getIdentity(); static_cast<Nif::Node*>(this)->trafo = Nif::Transformation::getIdentity();
} }