[Draft] Small bugfix in bezcurve editing

Solved bug when clicking on empty space while editing continuity.
This commit is contained in:
carlopav
2019-08-18 11:26:21 +02:00
committed by Yorik van Havre
parent 5e24782f40
commit 644c2bae46

View File

@@ -800,9 +800,10 @@ class Edit():
index,self.obj.ViewObject.LineColor,\
marker=marker))
def smoothBezPoint(self,point, style='Symmetric'):
def smoothBezPoint(self, point, style='Symmetric'):
"called when changing the continuity of a knot"
style2cont = {'Sharp':0,'Tangent':1,'Symmetric':2}
if point == None: return
if not (Draft.getType(self.obj) == "BezCurve"):return
pts = self.obj.Points
deg = self.obj.Degree