1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-02 02:06:41 +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);