diff options
Diffstat (limited to 'source/blender/editors/lattice')
-rw-r--r-- | source/blender/editors/lattice/editlattice_select.c | 3 | ||||
-rw-r--r-- | source/blender/editors/lattice/editlattice_tools.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/lattice/editlattice_select.c b/source/blender/editors/lattice/editlattice_select.c index 782c0644313..7e89ed9511f 100644 --- a/source/blender/editors/lattice/editlattice_select.c +++ b/source/blender/editors/lattice/editlattice_select.c @@ -582,8 +582,9 @@ static void findnearestLattvert__doClosest(void *userData, BPoint *bp, const flo } *data = userData; float dist_test = len_manhattan_v2v2(data->mval_fl, screen_co); - if ((bp->f1 & SELECT) && data->select) + if ((bp->f1 & SELECT) && data->select) { dist_test += 5.0f; + } if (dist_test < data->dist) { data->dist = dist_test; diff --git a/source/blender/editors/lattice/editlattice_tools.c b/source/blender/editors/lattice/editlattice_tools.c index 8ef383de552..0cfe59ef06c 100644 --- a/source/blender/editors/lattice/editlattice_tools.c +++ b/source/blender/editors/lattice/editlattice_tools.c @@ -57,8 +57,9 @@ static bool make_regular_poll(bContext *C) { Object *ob; - if (ED_operator_editlattice(C)) + if (ED_operator_editlattice(C)) { return 1; + } ob = CTX_data_active_object(C); return (ob && ob->type == OB_LATTICE); |