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-04-04 18:52:26 -04:00
committed by Yorik van Havre
parent c6b3949704
commit 883a726d52
14 changed files with 106 additions and 2 deletions

View File

@@ -1256,6 +1256,12 @@ App::DocumentObjectExecReturn *Hole::execute(void)
this->AddSubShape.setValue( holes );
remapSupportShape(base);
int solidCount = countSolids(base);
if (solidCount > 1) {
return new App::DocumentObjectExecReturn("Hole: Result has multiple solids. Check parameters.");
}
this->Shape.setValue(base);
return App::DocumentObject::StdReturn;