mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Fix regression in the NiVisController
This commit is contained in:
parent
84979fa8b7
commit
7b5ec76db4
@ -305,7 +305,7 @@ void VisController::operator() (osg::Node* node, osg::NodeVisitor* nv)
|
||||
{
|
||||
bool vis = calculate(getInputValue(nv));
|
||||
// Leave 0x1 enabled for UpdateVisitor, so we can make ourselves visible again in the future from this update callback
|
||||
node->setNodeMask(vis ? ~SceneUtil::Mask_Default : SceneUtil::Mask_UpdateVisitor);
|
||||
node->setNodeMask(vis ? SceneUtil::Mask_Default : SceneUtil::Mask_UpdateVisitor);
|
||||
}
|
||||
traverse(node, nv);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user