mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +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));
|
bool vis = calculate(getInputValue(nv));
|
||||||
// Leave 0x1 enabled for UpdateVisitor, so we can make ourselves visible again in the future from this update callback
|
// 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);
|
traverse(node, nv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user