diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 837a4a0e30..34ac12e490 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -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(this)->trafo = Nif::Transformation::getIdentity(); + trafo = Nif::Transformation::getIdentity(); } }