From 251827c99418034ffa584ee4d7ab6846aa103121 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 6 Feb 2012 13:45:20 +0000 Subject: [PATCH] From Mathias Froehlich, "In Optimizer.cpp a nodes update callback is checked twice and the cull callback is checked never for the decision of a node being redundant. The change replaces one of the update callback tests with a cull callback test." --- src/osgUtil/Optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index dd3594a2d..09acb0112 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -1411,7 +1411,7 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n return node.getNumParents()>0 && !node.getStateSet() && !node.getUserData() && - !node.getUpdateCallback() && + !node.getCullCallback() && !node.getEventCallback() && !node.getUpdateCallback() && node.getDescriptions().empty() &&