[Draft] Edit addpoint with both chamfer and fillet enabled
This commit is contained in:
committed by
Yorik van Havre
parent
50897a55f5
commit
8cdf9ee534
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user