Do the same for the elements selected in the Task Panel

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
This commit is contained in:
CalligaroV
2024-09-15 19:54:09 +02:00
parent 3da4b59b37
commit c3bad9da25

View File

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