[Draft] Edit addpoint with both chamfer and fillet enabled

This commit is contained in:
carlopav
2020-01-20 22:51:55 +01:00
committed by Yorik van Havre
parent 50897a55f5
commit 8cdf9ee534

View File

@@ -883,7 +883,9 @@ class Edit():
newPoints = []
hasAddedPoint = False
if hasattr(obj, "ChamferSize") and hasattr(obj, "FilletRadius"):
if obj.ChamferSize > 0 or obj.FilletRadius > 0:
if obj.ChamferSize > 0 and obj.FilletRadius > 0:
edgeIndex = (edgeIndex +3) / 4
elif obj.ChamferSize > 0 or obj.FilletRadius > 0:
edgeIndex = (edgeIndex +1) / 2
for index, point in enumerate(self.obj.Points):
@@ -1840,4 +1842,4 @@ class Edit():
if App.GuiUp:
# setup command
Gui.addCommand('Draft_Edit', Edit())
Gui.addCommand('Draft_Edit', Edit())