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:
committed by
Chris Hennes
parent
4145011938
commit
c4dbe7e866
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user