diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 9721fc5d15..6de9bfb1de 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -1267,6 +1267,21 @@ Py::Object View3DInventorPy::getObjectsInfo(const Py::Tuple& args) // ok, found the node of interest list.append(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; + } + } } ret = list;