mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Merge pull request #3098 from bosvensson1/findbynamevisitor
visitor.cpp early out
This commit is contained in:
commit
0eb753767f
@ -32,13 +32,13 @@ namespace SceneUtil
|
||||
|
||||
void FindByNameVisitor::apply(osg::Group &group)
|
||||
{
|
||||
if (!checkGroup(group))
|
||||
if (!mFoundNode && !checkGroup(group))
|
||||
traverse(group);
|
||||
}
|
||||
|
||||
void FindByNameVisitor::apply(osg::MatrixTransform &node)
|
||||
{
|
||||
if (!checkGroup(node))
|
||||
if (!mFoundNode && !checkGroup(node))
|
||||
traverse(node);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user