mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Avoid optimizing animated shapes once again (regression #5565)
This commit is contained in:
parent
eed8902380
commit
8c213cbfb1
@ -625,8 +625,8 @@ namespace NifOsg
|
|||||||
bool isAnimated = false;
|
bool isAnimated = false;
|
||||||
handleNodeControllers(nifNode, node, animflags, isAnimated);
|
handleNodeControllers(nifNode, node, animflags, isAnimated);
|
||||||
hasAnimatedParents |= isAnimated;
|
hasAnimatedParents |= isAnimated;
|
||||||
// Make sure empty nodes are not optimized away so the physics system can find them.
|
// Make sure empty nodes and animated shapes are not optimized away so the physics system can find them.
|
||||||
if (isAnimated || (hasAnimatedParents && (skipMeshes || hasMarkers)))
|
if (isAnimated || (hasAnimatedParents && ((skipMeshes || hasMarkers) || isGeometry)))
|
||||||
node->setDataVariance(osg::Object::DYNAMIC);
|
node->setDataVariance(osg::Object::DYNAMIC);
|
||||||
|
|
||||||
// LOD and Switch nodes must be wrapped by a transform (the current node) to support transformations properly
|
// LOD and Switch nodes must be wrapped by a transform (the current node) to support transformations properly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user