Skip to content

Commit

Permalink
Draft: further cleanup of Draft Edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopav authored and yorikvanhavre committed May 29, 2020
1 parent 547b9e4 commit 0b912f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Mod/Draft/draftguitools/gui_edit.py
Expand Up @@ -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
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 0b912f7

Please sign in to comment.