Skip to content

Commit

Permalink
Gui: change Selection.getCompleteSelection() to return a list of Sele…
Browse files Browse the repository at this point in the history
…ctionObject instead of DocumentObject (see 10e9e3b)
  • Loading branch information
wwmayer committed Sep 30, 2022
1 parent 766f787 commit d8d5211
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Gui/Selection.cpp
Expand Up @@ -2357,8 +2357,14 @@ PyObject *SelectionSingleton::sGetCompleteSelection(PyObject * /*self*/, PyObjec
sel = Selection().getCompleteSelection(toEnum(resolve));

Py::List list;
for (std::vector<SelectionSingleton::SelObj>::iterator it = sel.begin(); it != sel.end(); ++it) {
list.append(Py::asObject(it->pObject->getPyObject()));
for (const auto & it : sel) {
SelectionObject obj(SelectionChanges(SelectionChanges::AddSelection,
it.DocName,
it.FeatName,
it.SubName,
it.TypeName,
it.x, it.y, it.z));
list.append(Py::asObject(obj.getPyObject()));
}
return Py::new_reference_to(list);
}
Expand Down

0 comments on commit d8d5211

Please sign in to comment.