Gui: Fixed regression in getObjectsInfo

This commit is contained in:
wmayer
2018-03-03 23:36:58 +01:00
parent 449dbe13eb
commit 5ca83dda4f

View File

@@ -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;