Gui: Fixed regression in getObjectsInfo
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user