1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-29 15:11:35 +00:00

Clarify root node transformation discard

This commit is contained in:
Alexei Dobrohotov 2022-02-18 20:48:15 +03:00
parent 1b3acc85f7
commit 76ba5025e3

View file

@ -225,9 +225,10 @@ struct NiNode : Node
// 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.
// FIXME: if node 0 is *not* the only root node, this must not happen.
if (0 == recIndex && !Misc::StringUtils::ciEqual(name, "bip01"))
{
static_cast<Nif::Node*>(this)->trafo = Nif::Transformation::getIdentity();
trafo = Nif::Transformation::getIdentity();
}
}