mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 11:11:34 +00:00
Don't consider NiCollisionSwitch unoptimizeable
This commit is contained in:
parent
81e9212db9
commit
eafa66ff40
1 changed files with 3 additions and 7 deletions
|
@ -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…
Reference in a new issue