From 0b912f7c8be9f8080c995fdc78e3da5c7cf70b2b Mon Sep 17 00:00:00 2001 From: carlopav Date: Thu, 28 May 2020 22:41:28 +0200 Subject: [PATCH] Draft: further cleanup of Draft Edit. --- src/Mod/Draft/draftguitools/gui_edit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/draftguitools/gui_edit.py b/src/Mod/Draft/draftguitools/gui_edit.py index cfab87b7b9eb..01d5640f943a 100644 --- a/src/Mod/Draft/draftguitools/gui_edit.py +++ b/src/Mod/Draft/draftguitools/gui_edit.py @@ -560,7 +560,6 @@ def resetTrackers(self, obj): def resetTrackersBezier(self, obj): # in future move tracker definition to DraftTrackers - from pivy import coin knotmarkers = (coin.SoMarkerSet.DIAMOND_FILLED_9_9,#sharp coin.SoMarkerSet.SQUARE_FILLED_9_9, #tangent coin.SoMarkerSet.HOURGLASS_FILLED_9_9) #symmetric @@ -777,7 +776,7 @@ def addPointToWire(self, obj, newPoint, edgeIndex): def addPointToCurve(self, point, obj, info=None): import Part - if not (utils.get_type(obj) in ["BSpline", "BezCurve"]): + if utils.get_type(obj) not in ["BSpline", "BezCurve"]: return pts = obj.Points if utils.get_type(obj) == "BezCurve": @@ -841,7 +840,7 @@ def delPoint(self, event): obj = doc.getObject(str(node.objectName.getValue())) if obj is None: return - if not (utils.get_type(obj) in ["Wire", "BSpline", "BezCurve"]): + if utils.get_type(obj) not in ["Wire", "BSpline", "BezCurve"]: return if len(obj.Points) <= 2: _msg = translate("draft", "Active object must have more than two points/nodes")