From ec3a6ba0d9ed1012548856543db21db57908b4c8 Mon Sep 17 00:00:00 2001 From: carlopav Date: Sun, 18 Aug 2019 11:26:21 +0200 Subject: [PATCH] [Draft] Small bugfix in bezcurve editing Solved bug when clicking on empty space while editing continuity. --- src/Mod/Draft/DraftEdit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/DraftEdit.py b/src/Mod/Draft/DraftEdit.py index 478716cb9b..7149b9f1a8 100644 --- a/src/Mod/Draft/DraftEdit.py +++ b/src/Mod/Draft/DraftEdit.py @@ -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