From 5232aa745fbfaa80ae918c5ee36340f0933920a7 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 1 May 2017 17:45:42 +0200 Subject: [PATCH] if set display node name in scene inspector panel --- src/Gui/SceneInspector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/SceneInspector.cpp b/src/Gui/SceneInspector.cpp index 013520d182..9df15bbb4b 100644 --- a/src/Gui/SceneInspector.cpp +++ b/src/Gui/SceneInspector.cpp @@ -105,6 +105,9 @@ void SceneModel::setNode(QModelIndex index, SoNode* node) if (it != nodeNames.end()) { this->setData(this->index(i, 1, index), QVariant(it.value())); } + else { + this->setData(this->index(i, 1, index), QVariant(QString::fromLatin1(child->getName()))); + } } } // insert icon