diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-04-19 22:07:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-04-19 22:07:59 +0300 |
commit | c1c97c3d4ac7a0083fcf507c770f20102929a77f (patch) | |
tree | a073d3b98ce9749274963d4a89e64e4d40e99674 /source/blender/draw | |
parent | 5cc7e2ae16d47c58f4a560efaf3a3a35eafe1352 (diff) | |
parent | 2816b22b381df710b83c0dbc5d079ad0e27db50c (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c index ce9ad2091ac..24d95a13ee8 100644 --- a/source/blender/draw/engines/workbench/workbench_data.c +++ b/source/blender/draw/engines/workbench/workbench_data.c @@ -199,7 +199,6 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) } wpd->clip_state = clip_state; - wpd->cull_state = CULL_BACKFACE_ENABLED(v3d) ? DRW_STATE_CULL_BACK : 0; wpd->vldata = vldata; wpd->world_ubo = vldata->world_ubo; @@ -266,6 +265,8 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) copy_v4_fl(wpd->background_color, 0.0f); } + wpd->cull_state = CULL_BACKFACE_ENABLED(wpd) ? DRW_STATE_CULL_BACK : 0; + if (wpd->shading.light == V3D_LIGHTING_MATCAP) { wpd->studio_light = BKE_studiolight_find(wpd->shading.matcap, STUDIOLIGHT_TYPE_MATCAP); } |