Draft: remove maxSnap parameter

It is superfluous. The maxSnapEdges parameter can be set to zero.
This commit is contained in:
Roy-043
2023-12-08 12:06:36 +01:00
parent e0494febb4
commit 770eb5e64a
2 changed files with 2 additions and 4 deletions

View File

@@ -85,15 +85,13 @@ class Snapper:
def __init__(self):
self.activeview = None
self.lastObj = []
self.maxEdges = 0
self.radius = 0
self.constraintAxis = None
self.basepoint = None
self.affinity = None
self.mask = None
self.cursorMode = None
if Draft.getParam("maxSnap", 0):
self.maxEdges = Draft.getParam("maxSnapEdges", 0)
self.maxEdges = Draft.getParam("maxSnapEdges", 0)
# we still have no 3D view when the draft module initializes
self.tracker = None

View File

@@ -208,7 +208,7 @@ def get_param_type(param):
"LineSpacing"):
return "float"
elif param in ("selectBaseObjects", "alwaysSnap", "grid",
"fillmode", "maxSnap", "DimShowLine",
"fillmode", "DimShowLine",
"SvgLinesBlack", "dxfStdSize", "SnapBarShowOnlyDuringCommands",
"alwaysShowGrid", "renderPolylineWidth",
"showPlaneTracker", "UsePartPrimitives",