Skip to content

Commit

Permalink
Part: fix TopoShape::makEChamfer() angle mode
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Oct 21, 2022
1 parent 4220d5e commit d307b5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Part/App/TopoShapeEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@

#include <Base/Exception.h>
#include <Base/Console.h>
#include <Base/Tools.h>
#include <App/MappedElement.h>
#include <App/Application.h>
#include <App/Document.h>
Expand Down Expand Up @@ -4794,7 +4795,7 @@ TopoShape &TopoShape::makEChamfer(const TopoShape &shape,
else
face = shape.findAncestorShape(edge,TopAbs_FACE);
if(info.angle > 0.0)
mkChamfer.AddDA(info.size, info.angle, TopoDS::Edge(edge), TopoDS::Face(face));
mkChamfer.AddDA(info.size, Base::toRadians(info.angle), TopoDS::Edge(edge), TopoDS::Face(face));
else if (info.size2 > 0.0)
mkChamfer.Add(info.size, info.size2, TopoDS::Edge(edge), TopoDS::Face(face));
else
Expand Down

0 comments on commit d307b5c

Please sign in to comment.