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/space_view3d/view3d_view.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/space_view3d/view3d_view.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 74343163c39..9a7da7c177d 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -853,8 +853,9 @@ void project_short(ARegion *ar, const float vec[3], short adr[2]) /* clips */ adr[0]= IS_CLIPPED; if (rv3d->rflag & RV3D_CLIPPING) { - if (ED_view3d_test_clipping(rv3d, vec, 0)) + if (ED_view3d_clipping_test(rv3d, vec, FALSE)) { return; + } } copy_v3_v3(vec4, vec); @@ -1230,7 +1231,7 @@ short view3d_opengl_select(ViewContext *vc, unsigned int *buffer, unsigned int b } if (vc->rv3d->rflag & RV3D_CLIPPING) - view3d_set_clipping(vc->rv3d); + ED_view3d_clipping_set(vc->rv3d); glSelectBuffer( bufsize, (GLuint *)buffer); glRenderMode(GL_SELECT); @@ -1309,7 +1310,7 @@ short view3d_opengl_select(ViewContext *vc, unsigned int *buffer, unsigned int b // XXX persp(PERSP_WIN); if (vc->rv3d->rflag & RV3D_CLIPPING) - view3d_clr_clipping(); + ED_view3d_clipping_disable(); if (hits<0) printf("Too many objects in select buffer\n"); // XXX make error message |