From c4dbe7e8662b142fe31169b72bb0945ad2f104e4 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Mon, 13 Oct 2025 20:15:08 +0200 Subject: [PATCH] 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. --- src/Mod/PartDesign/App/FeatureBoolean.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/PartDesign/App/FeatureBoolean.cpp b/src/Mod/PartDesign/App/FeatureBoolean.cpp index abd0a106f5..252465cfd9 100644 --- a/src/Mod/PartDesign/App/FeatureBoolean.cpp +++ b/src/Mod/PartDesign/App/FeatureBoolean.cpp @@ -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 shapes; for (auto& obj : Group.getValues()) {