mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 18:39:51 +00:00
Don't consider NiCollisionSwitch unoptimizeable
This commit is contained in:
parent
81e9212db9
commit
eafa66ff40
@ -517,13 +517,6 @@ namespace NifOsg
|
|||||||
if (!node)
|
if (!node)
|
||||||
node = new NifOsg::MatrixTransform(nifNode->trafo);
|
node = new NifOsg::MatrixTransform(nifNode->trafo);
|
||||||
|
|
||||||
if (nifNode->recType == Nif::RC_NiCollisionSwitch && !(nifNode->flags & Nif::NiNode::Flag_ActiveCollision))
|
|
||||||
{
|
|
||||||
node->setNodeMask(Loader::getIntersectionDisabledNodeMask());
|
|
||||||
// This node must not be combined with another node.
|
|
||||||
dataVariance = osg::Object::DYNAMIC;
|
|
||||||
}
|
|
||||||
|
|
||||||
node->setDataVariance(dataVariance);
|
node->setDataVariance(dataVariance);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
@ -639,6 +632,9 @@ namespace NifOsg
|
|||||||
node->setNodeMask(Loader::getHiddenNodeMask());
|
node->setNodeMask(Loader::getHiddenNodeMask());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nifNode->recType == Nif::RC_NiCollisionSwitch && !(nifNode->flags & Nif::NiNode::Flag_ActiveCollision))
|
||||||
|
node->setNodeMask(Loader::getIntersectionDisabledNodeMask());
|
||||||
|
|
||||||
osg::ref_ptr<SceneUtil::CompositeStateSetUpdater> composite = new SceneUtil::CompositeStateSetUpdater;
|
osg::ref_ptr<SceneUtil::CompositeStateSetUpdater> composite = new SceneUtil::CompositeStateSetUpdater;
|
||||||
|
|
||||||
applyNodeProperties(nifNode, node, composite, imageManager, boundTextures, animflags);
|
applyNodeProperties(nifNode, node, composite, imageManager, boundTextures, animflags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user