1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

Merge branch 'collisionswitch' into 'master'

Don't let the optimizer mess with collision switch nodes (again)

See merge request OpenMW/openmw!4173
This commit is contained in:
psi29a 2024-06-15 08:41:44 +00:00
commit 8e20967511

View File

@ -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<SceneUtil::CompositeStateSetUpdater> composite = new SceneUtil::CompositeStateSetUpdater;