Skip to content

Commit

Permalink
Merge branch 'collisionswitch' into 'master'
Browse files Browse the repository at this point in the history
Don't let the optimizer mess with collision switch nodes (again)

See merge request OpenMW/openmw!4173
  • Loading branch information
psi29a committed Jun 15, 2024
2 parents 98ba212 + 4f8856f commit 8e20967
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/nifosg/nifloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8e20967

Please sign in to comment.