diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-11 08:34:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-11 08:34:19 +0400 |
commit | 57dba739176153e052d77611ff0e554f05984686 (patch) | |
tree | 317fc95876975a9743d6da1eb44513ed8bd2237d /source/blender/editors/object/object_lattice.c | |
parent | 23fbc9f22f3dfd7151c4396a17fbe586b0594d81 (diff) |
View3d: take pixelsize into account for selection distance
Diffstat (limited to 'source/blender/editors/object/object_lattice.c')
-rw-r--r-- | source/blender/editors/object/object_lattice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_lattice.c b/source/blender/editors/object/object_lattice.c index 8d12809b0c2..196e912e74e 100644 --- a/source/blender/editors/object/object_lattice.c +++ b/source/blender/editors/object/object_lattice.c @@ -867,7 +867,7 @@ static BPoint *findnearestLattvert(ViewContext *vc, const int mval[2], int sel) /* return 0 1 2: handlepunt */ struct { BPoint *bp; float dist; int select; float mval_fl[2]; } data = {NULL}; - data.dist = 100; + data.dist = ED_view3d_select_dist_px(); data.select = sel; data.mval_fl[0] = mval[0]; data.mval_fl[1] = mval[1]; |