forked from teamnwah/openmw-tes3coop
Create TriShapes with an identity transform as a Group
This commit is contained in:
parent
6e5d9efa93
commit
6e996bf2a3
1 changed files with 2 additions and 0 deletions
|
@ -527,6 +527,8 @@ namespace NifOsg
|
||||||
case Nif::RC_NiRotatingParticles:
|
case Nif::RC_NiRotatingParticles:
|
||||||
// Leaf nodes in the NIF hierarchy, so won't be able to dynamically attach children.
|
// 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).
|
// No support for keyframe controllers (just crashes in the original engine).
|
||||||
|
if (nifNode->trafo.isIdentity())
|
||||||
|
node = new osg::Group;
|
||||||
node->setDataVariance(osg::Object::STATIC);
|
node->setDataVariance(osg::Object::STATIC);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue