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:
committed by
Yorik van Havre
parent
c6b3949704
commit
883a726d52
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user