From af716d4b61db39d3228f8edf268748af4569328c Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 23 Feb 2017 20:02:04 +0100 Subject: [PATCH] optimizer: remove hardcoded condition in RemoveRedundantNodesVisitor --- components/sceneutil/optimizer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/sceneutil/optimizer.cpp b/components/sceneutil/optimizer.cpp index 195439d7a..510f05fbd 100644 --- a/components/sceneutil/optimizer.cpp +++ b/components/sceneutil/optimizer.cpp @@ -789,8 +789,6 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n { return node.getNumParents()>0 && !node.getStateSet() && - node.getName().empty() && - !node.getUserDataContainer() && !node.getCullCallback() && !node.getEventCallback() && !node.getUpdateCallback() &&