mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-12 02:06:43 +00:00
CopyRigVisitor: Log the number of parents in multiple parents error
This commit is contained in:
parent
a61267f57d
commit
3b55d657e5
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ namespace SceneUtil
|
||||||
for (const osg::ref_ptr<osg::Node>& node : mToCopy)
|
for (const osg::ref_ptr<osg::Node>& node : mToCopy)
|
||||||
{
|
{
|
||||||
if (node->getNumParents() > 1)
|
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())
|
while (node->getNumParents())
|
||||||
node->getParent(0)->removeChild(node);
|
node->getParent(0)->removeChild(node);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue