From 3b55d657e56780160a64f6d08b5446a30cbbe157 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Tue, 30 Jun 2020 23:30:22 +0300 Subject: [PATCH] CopyRigVisitor: Log the number of parents in multiple parents error --- components/sceneutil/attach.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/attach.cpp b/components/sceneutil/attach.cpp index c438e705d..2a6ec84e5 100644 --- a/components/sceneutil/attach.cpp +++ b/components/sceneutil/attach.cpp @@ -64,7 +64,7 @@ namespace SceneUtil for (const osg::ref_ptr& 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);