mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Speed up ControllerVisitor by skipping sub graphs that have no ChildrenRequiringUpdateTraversal()
This commit is contained in:
parent
c58fc6d276
commit
a76d693627
2 changed files with 35 additions and 31 deletions
|
@ -81,7 +81,8 @@ namespace SceneUtil
|
|||
callback = callback->getNestedCallback();
|
||||
}
|
||||
|
||||
traverse(node);
|
||||
if (node.getNumChildrenRequiringUpdateTraversal() > 0)
|
||||
traverse(node);
|
||||
}
|
||||
|
||||
AssignControllerSourcesVisitor::AssignControllerSourcesVisitor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue