mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Don't let the optimizer mess with collision switch nodes (again)
This commit is contained in:
parent
b001deeff7
commit
4f8856f887
@ -741,7 +741,11 @@ namespace NifOsg
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nifNode->recType == Nif::RC_NiCollisionSwitch && !nifNode->collisionActive())
|
if (nifNode->recType == Nif::RC_NiCollisionSwitch && !nifNode->collisionActive())
|
||||||
|
{
|
||||||
node->setNodeMask(Loader::getIntersectionDisabledNodeMask());
|
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;
|
osg::ref_ptr<SceneUtil::CompositeStateSetUpdater> composite = new SceneUtil::CompositeStateSetUpdater;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user