Fixed flatten static transform

This commit is contained in:
Robert Osfield 2003-12-12 17:23:03 +00:00
parent 3fefc3cc7e
commit 9f0dc42efe

View File

@ -457,7 +457,7 @@ class CollectLowestTransformsVisitor : public osg::NodeVisitor
CollectLowestTransformsVisitor(Optimizer* optimizer=0): CollectLowestTransformsVisitor(Optimizer* optimizer=0):
osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_PARENTS),
_optimizer(optimizer) {} _optimizer(optimizer) {}
virtual void apply(osg::Node& node) virtual void apply(osg::Node& node)
@ -760,7 +760,7 @@ void CollectLowestTransformsVisitor::setUpMaps()
ObjectStruct& os = oitr->second; ObjectStruct& os = oitr->second;
if (os._canBeApplied) if (os._canBeApplied)
{ {
if (os._moreThanOneMatrixRequired || isOperationPermissableForObject(object)) if (os._moreThanOneMatrixRequired || !isOperationPermissableForObject(object))
{ {
disableObject(oitr); disableObject(oitr);
} }