Draft: remove maxSnap parameter
It is superfluous. The maxSnapEdges parameter can be set to zero.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user