Merge pull request #10505 from Roy-043/Draft-Fix-angle-range-issue-of-make_circle

Draft: Fix angle range issue of make_circle
This commit is contained in:
Yorik van Havre
2023-09-04 11:29:13 +02:00
committed by GitHub
2 changed files with 13 additions and 15 deletions

View File

@@ -342,13 +342,9 @@ class Arc(gui_base_original.Creator):
end = math.degrees(self.firstangle + self.angle)
if end < sta:
sta, end = end, sta
while True:
if sta > 360:
sta = sta - 360
elif end > 360:
end = end - 360
else:
break
sta %= 360
end %= 360
try:
Gui.addModule("Draft")
if utils.getParam("UsePartPrimitives", False):