From 742cb48651f1c7aadb1cd705564fd93c818e4719 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 2 Mar 2018 17:04:41 -0300 Subject: [PATCH] Gui: Fixed regression in getObjectInfo --- src/Gui/View3DPy.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index c8722eff59..9721fc5d15 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -1179,6 +1179,21 @@ Py::Object View3DInventorPy::getObjectInfo(const Py::Tuple& args) // ok, found the node of interest ret = dict; } + else { + // custom nodes not in a VP: search for a SoFCSelection node + SoFCDocumentObjectAction objaction; + objaction.apply(Point->getPath()); + if (objaction.isHandled()) { + dict.setItem("Document", + Py::String(objaction.documentName.getString())); + dict.setItem("Object", + Py::String(objaction.objectName.getString())); + dict.setItem("Component", + Py::String(objaction.componentName.getString())); + // ok, found the node of interest + ret = dict; + } + } } return ret;