1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 22:45:36 +00:00

visitor.cpp early out

This commit is contained in:
Bo Svensson 2021-09-08 17:23:35 +00:00 committed by GitHub
parent 4fcac49e5f
commit d36c373cc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}