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:
parent
1b3acc85f7
commit
76ba5025e3
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue