1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 07:39:40 +00:00

Optimize custom bones search visitor

This commit is contained in:
Andrei Kortunov 2019-08-18 10:30:21 +04:00
parent 661d11c83e
commit fe71ce9cb2

View file

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