Do the same for the elements selected in the Task Panel
Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
This commit is contained in:
@@ -1677,8 +1677,11 @@ void TaskSketcherElements::onListWidgetElementsItemPressed(QListWidgetItem* it)
|
||||
selectVertex(item->isMidPointSelected, item->MidVertex);
|
||||
}
|
||||
|
||||
if (!elementSubNames.empty()) {
|
||||
Gui::Selection().addSelections(doc_name.c_str(), obj_name.c_str(), elementSubNames);
|
||||
for (const auto& elementSubName : elementSubNames) {
|
||||
Gui::Selection().addSelection2(
|
||||
doc_name.c_str(),
|
||||
obj_name.c_str(),
|
||||
sketchView->getSketchObject()->convertSubName(elementSubName).c_str());
|
||||
}
|
||||
|
||||
this->blockSelection(block);
|
||||
|
||||
Reference in New Issue
Block a user