Clarify root node transformation discard

C++20
Alexei Dobrohotov 3 years ago
parent 1b3acc85f7
commit 76ba5025e3

@ -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();
}
}

Loading…
Cancel
Save