PartDesign: Fix boolean fuse without tools

This fixes issue where exception was thrown when no tools were selected
preventing the task dialog from being opened.
This commit is contained in:
Kacper Donat
2025-10-13 20:15:08 +02:00
committed by Chris Hennes
parent 4145011938
commit c4dbe7e866

View File

@@ -177,6 +177,12 @@ void Boolean::updatePreviewShape()
}
if (strcmp(Type.getValueAsString(), "Fuse") == 0) {
// if there are no other shapes to fuse just return itself
if (Group.getValues().empty()) {
PreviewShape.setValue(Shape.getShape());
return;
}
std::vector<TopoShape> shapes;
for (auto& obj : Group.getValues()) {