diff --git a/src/Mod/Part/App/PrimitiveFeature.cpp b/src/Mod/Part/App/PrimitiveFeature.cpp index 15c04121c8..e2aa490c38 100644 --- a/src/Mod/Part/App/PrimitiveFeature.cpp +++ b/src/Mod/Part/App/PrimitiveFeature.cpp @@ -665,14 +665,14 @@ App::DocumentObjectExecReturn *Cone::execute() //Build a cylinder BRepPrimAPI_MakeCylinder mkCylr(Radius1.getValue(), Height.getValue(), - 2.0 * M_PI); + Base::toRadians(Angle.getValue())); ResultShape = mkCylr.Shape(); } else { // Build a cone BRepPrimAPI_MakeCone mkCone(Radius1.getValue(), Radius2.getValue(), Height.getValue(), - angle/180.0f*M_PI); + Base::toRadians(angle)); ResultShape = mkCone.Shape(); } this->Shape.setValue(ResultShape); diff --git a/src/Mod/PartDesign/App/FeaturePrimitive.cpp b/src/Mod/PartDesign/App/FeaturePrimitive.cpp index 1fa613eecd..44c1eb1b7f 100644 --- a/src/Mod/PartDesign/App/FeaturePrimitive.cpp +++ b/src/Mod/PartDesign/App/FeaturePrimitive.cpp @@ -360,7 +360,7 @@ App::DocumentObjectExecReturn* Cone::execute() //Build a cylinder BRepPrimAPI_MakeCylinder mkCylr(Radius1.getValue(), Height.getValue(), - 2.0 * M_PI); + Base::toRadians(Angle.getValue())); return FeaturePrimitive::execute(mkCylr.Shape()); } // Build a cone