Fix #3401 warning on multiple solid

- PartDesign only uses the first result shape
  of an operation and discards the rest without
  warning.

- this also fixes #1707
This commit is contained in:
wandererfan
2018-07-13 10:23:42 -03:00
committed by Yorik van Havre
parent c6b3949704
commit 883a726d52
14 changed files with 106 additions and 2 deletions
@@ -141,6 +141,11 @@ App::DocumentObjectExecReturn *Boolean::execute(void)
result = boolOp; // Use result of this operation for fuse/cut of next body
}
int solidCount = countSolids(result);
if (solidCount > 1) {
return new App::DocumentObjectExecReturn("Boolean: Result has multiple solids. Check parameters.");
}
this->Shape.setValue(getSolid(result));
return App::DocumentObject::StdReturn;