diff --git a/src/Mod/PartDesign/App/FeatureFillet.cpp b/src/Mod/PartDesign/App/FeatureFillet.cpp index 21312e212e..f6513cf456 100644 --- a/src/Mod/PartDesign/App/FeatureFillet.cpp +++ b/src/Mod/PartDesign/App/FeatureFillet.cpp @@ -23,10 +23,12 @@ #include "PreCompiled.h" #ifndef _PreComp_ +# include # include # include # include # include +# include #endif #include @@ -95,6 +97,12 @@ App::DocumentObjectExecReturn *Fillet::execute(void) if (shape.IsNull()) return new App::DocumentObjectExecReturn("Resulting shape is null"); + TopTools_ListOfShape aLarg; + aLarg.Append(baseShape._Shape); + if (!BRepAlgo::IsValid(aLarg, shape, Standard_False, Standard_False)) { + return new App::DocumentObjectExecReturn("Resulting shape is invalid"); + } + this->Shape.setValue(shape); return App::DocumentObject::StdReturn; }