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/knifetool.c | |
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/knifetool.c')
-rw-r--r-- | source/blender/editors/mesh/knifetool.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |