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

Merge pull request #2502 from akortunov/master

Optimize custom bones search visitor
This commit is contained in:
Andrei Kortunov 2019-08-18 10:36:01 +04:00 committed by GitHub
commit b58c632c20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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