diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-29 14:27:27 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-06-18 12:14:25 +0300 |
commit | af1e94413ab67c1880a5c0d2306159ca68ce339c (patch) | |
tree | 2c52f570181113369683861b7f78ddd9f3fd5cd5 /source/blender/draw/engines/workbench/workbench_data.c | |
parent | f9e0d51e318e513fc4ce72c2acdfbded647b4a23 (diff) |
TexturePaint: Projection Edit
Disable all overlays except the texture paint overlay. Add alpha to the
resulting image buffer.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4974
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_data.c')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_data.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c index fce1d725133..04e1255521f 100644 --- a/source/blender/draw/engines/workbench/workbench_data.c +++ b/source/blender/draw/engines/workbench/workbench_data.c @@ -79,9 +79,7 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) WORKBENCH_UBO_World *wd = &wpd->world_data; wd->matcap_orientation = (wpd->shading.flag & V3D_SHADING_MATCAP_FLIP_X) != 0; - wd->background_alpha = (DRW_state_is_image_render() && scene->r.alphamode == R_ALPHAPREMUL) ? - 0.0f : - 1.0f; + wd->background_alpha = DRW_state_draw_background() ? 1.0f : 0.0f; if ((scene->world != NULL) && (!v3d || (v3d && ((v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD) || |