From 6e996bf2a3bd292e83104a1ca20058bcbd99ed35 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 23 Feb 2017 15:58:17 +0100 Subject: [PATCH] Create TriShapes with an identity transform as a Group --- components/nifosg/nifloader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 656cc96bc..285719eef 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -527,6 +527,8 @@ namespace NifOsg case Nif::RC_NiRotatingParticles: // Leaf nodes in the NIF hierarchy, so won't be able to dynamically attach children. // No support for keyframe controllers (just crashes in the original engine). + if (nifNode->trafo.isIdentity()) + node = new osg::Group; node->setDataVariance(osg::Object::STATIC); break; default: