Factor out some generic parts of the sculpting PBVH redraw planes code.
authorNicholas Bishop <nicholasbishop@gmail.com>
Mon, 26 Dec 2011 20:19:55 +0000 (20:19 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Mon, 26 Dec 2011 20:19:55 +0000 (20:19 +0000)
commit5f3b1a976785fae9c36334a038794bc03b324c3f
treeeae4e68c25aa474fcb668abcec2140a7910006c1
parent50cc053690abf2ccf2f16b79d998f1e94a881d31
Factor out some generic parts of the sculpting PBVH redraw planes code.

One function converts bounding boxes to screen space, the other
converts a screen-space rectangle to 3D clipping planes.

Also const-ified some parameters in the ED_view3d API.
source/blender/editors/include/ED_view3d.h
source/blender/editors/sculpt_paint/paint_intern.h
source/blender/editors/sculpt_paint/paint_utils.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_view.c