1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +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);
}