From 2f87c26317cc398a48b6c76e747ad1dad3b56570 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 3 Mar 2018 23:36:58 +0100 Subject: [PATCH] Gui: Fixed regression in getObjectsInfo --- src/Gui/View3DPy.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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;