1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 04:45:34 +00:00

CopyRigVisitor: Log the number of parents in multiple parents error

This commit is contained in:
Capostrophic 2020-06-30 23:30:22 +03:00
parent a61267f57d
commit 3b55d657e5

View file

@ -64,7 +64,7 @@ namespace SceneUtil
for (const osg::ref_ptr<osg::Node>& node : mToCopy)
{
if (node->getNumParents() > 1)
Log(Debug::Error) << "Error CopyRigVisitor: node has multiple parents";
Log(Debug::Error) << "Error CopyRigVisitor: node has " << node->getNumParents() << " parents";
while (node->getNumParents())
node->getParent(0)->removeChild(node);