Speed up ControllerVisitor by skipping sub graphs that have no ChildrenRequiringUpdateTraversal()

This commit is contained in:
scrawl 2017-02-03 23:10:14 +01:00
parent c58fc6d276
commit a76d693627
2 changed files with 35 additions and 31 deletions

View file

@ -81,7 +81,8 @@ namespace SceneUtil
callback = callback->getNestedCallback();
}
traverse(node);
if (node.getNumChildrenRequiringUpdateTraversal() > 0)
traverse(node);
}
AssignControllerSourcesVisitor::AssignControllerSourcesVisitor()