diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-28 17:03:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-28 17:03:56 +0400 |
commit | 9baab70aaf8cfb087ae756a6228c2a27c1d4a760 (patch) | |
tree | 9bbd509a990db9a937619cea014c693cbd5373f4 /source/blender/editors/mesh | |
parent | 95c14aa685522740eee03a9bdc2ee62b9414564f (diff) |
code cleanup: make clipping enable/disable into functions (was being done inline in drawobject.c)
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/bmesh_select.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mesh/knifetool.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/bmesh_select.c b/source/blender/editors/mesh/bmesh_select.c index 881027e7dc8..2fe177b71f1 100644 --- a/source/blender/editors/mesh/bmesh_select.c +++ b/source/blender/editors/mesh/bmesh_select.c @@ -476,7 +476,7 @@ static void findnearestedge__doClosest(void *userData, BMEdge *eed, int x0, int vec[2] = eed->v1->co[2] + labda * (eed->v2->co[2] - eed->v1->co[2]); mul_m4_v3(data->vc.obedit->obmat, vec); - if (ED_view3d_test_clipping(data->vc.rv3d, vec, 1) == 0) { + if (ED_view3d_clipping_test(data->vc.rv3d, vec, TRUE) == 0) { data->dist = distance; data->closest = eed; } diff --git a/source/blender/editors/mesh/knifetool.c b/source/blender/editors/mesh/knifetool.c index 3a9494f506d..fe1cc18086f 100644 --- a/source/blender/editors/mesh/knifetool.c +++ b/source/blender/editors/mesh/knifetool.c @@ -1324,7 +1324,7 @@ static int knife_sample_screen_density(knifetool_opdata *kcd, float radius) copy_v3_v3(vec, kfv->cageco); mul_m4_v3(kcd->vc.obedit->obmat, vec); - if (ED_view3d_test_clipping(kcd->vc.rv3d, vec, 1) == 0) { + if (ED_view3d_clipping_test(kcd->vc.rv3d, vec, TRUE) == 0) { c++; } } @@ -1398,7 +1398,7 @@ static KnifeEdge *knife_find_closest_edge(knifetool_opdata *kcd, float p[3], flo vec[2] = kfe->v1->cageco[2] + labda*(kfe->v2->cageco[2] - kfe->v1->cageco[2]); mul_m4_v3(kcd->vc.obedit->obmat, vec); - if (ED_view3d_test_clipping(kcd->vc.rv3d, vec, 1) == 0) { + if (ED_view3d_clipping_test(kcd->vc.rv3d, vec, TRUE) == 0) { cure = kfe; curdis = dis; } @@ -1483,7 +1483,7 @@ static KnifeVert *knife_find_closest_vert(knifetool_opdata *kcd, float p[3], flo copy_v3_v3(vec, kfv->cageco); mul_m4_v3(kcd->vc.obedit->obmat, vec); - if (ED_view3d_test_clipping(kcd->vc.rv3d, vec, 1) == 0) { + if (ED_view3d_clipping_test(kcd->vc.rv3d, vec, TRUE) == 0) { curv = kfv; curdis = dis; } |