Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-28 17:03:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-28 17:03:56 +0400
commit9baab70aaf8cfb087ae756a6228c2a27c1d4a760 (patch)
tree9bbd509a990db9a937619cea014c693cbd5373f4 /source/blender/editors/mesh/knifetool.c
parent95c14aa685522740eee03a9bdc2ee62b9414564f (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.c6
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;
}