Merge branch 'master' of ssh://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad
This commit is contained in:
commit
b86fc6cbe4
|
@ -288,11 +288,13 @@ class Snapper:
|
||||||
origin = Vector(self.snapInfo['x'],self.snapInfo['y'],self.snapInfo['z'])
|
origin = Vector(self.snapInfo['x'],self.snapInfo['y'],self.snapInfo['z'])
|
||||||
winner = [Vector(0,0,0),None,Vector(0,0,0)]
|
winner = [Vector(0,0,0),None,Vector(0,0,0)]
|
||||||
for snap in snaps:
|
for snap in snaps:
|
||||||
# if snap[0] == None: print "debug: Snapper: 'i[0]' is 'None'"
|
if snap[0] == None:
|
||||||
delta = snap[0].sub(origin)
|
print "debug: Snapper: snap point = ",snap
|
||||||
if delta.Length < shortest:
|
else:
|
||||||
shortest = delta.Length
|
delta = snap[0].sub(origin)
|
||||||
winner = snap
|
if delta.Length < shortest:
|
||||||
|
shortest = delta.Length
|
||||||
|
winner = snap
|
||||||
|
|
||||||
# see if we are out of the max radius, if any
|
# see if we are out of the max radius, if any
|
||||||
if self.radius:
|
if self.radius:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user