diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-22 12:24:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-22 12:24:52 +0400 |
commit | 00e7a4b5a70c64c6f1961b860c50d93daee4cbf7 (patch) | |
tree | 60a0685aa0869594090bd05600fbd39d108a1634 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | d435be750a06ca672d82192d88bb00f01b068c92 (diff) |
fix [#31530] Project paint with Clipping border gives opaque background
draw clipping box alpha 0 so reprojection and rendering show the background as alpha 0.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 33141bb6abb..0c6e13051bb 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -160,7 +160,11 @@ static void view3d_draw_clipping(RegionView3D *rv3d) {1, 5, 6, 2}, {7, 4, 0, 3}}; - UI_ThemeColorShade(TH_BACK, -8); + /* fill in zero alpha for rendering & re-projection [#31530] */ + unsigned char col[4]; + UI_GetThemeColorShade3ubv(TH_BACK, -8, col); + col[3] = 0; + glColor4ubv(col); glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(3, GL_FLOAT, 0, bb->vec); |