Optimize custom bones search visitor

pull/541/head
Andrei Kortunov 5 years ago
parent 661d11c83e
commit fe71ce9cb2

@ -247,7 +247,10 @@ namespace
void apply(osg::Node& node) void apply(osg::Node& node)
{ {
if (SceneUtil::hasUserDescription(&node, "CustomBone")) if (SceneUtil::hasUserDescription(&node, "CustomBone"))
{
mFoundBones.emplace_back(&node, node.getParent(0)); mFoundBones.emplace_back(&node, node.getParent(0));
return;
}
traverse(node); traverse(node);
} }

Loading…
Cancel
Save