diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 3245f8c4a2..7c9ff45f1e 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -741,7 +741,11 @@ namespace NifOsg } if (nifNode->recType == Nif::RC_NiCollisionSwitch && !nifNode->collisionActive()) + { node->setNodeMask(Loader::getIntersectionDisabledNodeMask()); + // Don't let the optimizer mess with this node + node->setDataVariance(osg::Object::DYNAMIC); + } osg::ref_ptr composite = new SceneUtil::CompositeStateSetUpdater;