Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2018-04-20 14:01:16 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-04-20 14:01:16 +0300
commitb4aff90fd048acb459c88b473ccc6b978ad369b5 (patch)
tree826774e4902f5e56caaebd38097b9df8c7b92b02
parent6f61983da3c78658d5de4b4ae0412672c52bebe5 (diff)
Workbench: Face orientation blending
-rw-r--r--source/blender/draw/modes/overlay_mode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/draw/modes/overlay_mode.c b/source/blender/draw/modes/overlay_mode.c
index 7ea17f8e613..59e34ee7ba9 100644
--- a/source/blender/draw/modes/overlay_mode.c
+++ b/source/blender/draw/modes/overlay_mode.c
@@ -98,8 +98,11 @@ static void overlay_cache_init(void *vedata)
if (v3d) {
stl->g_data->overlays = v3d->overlays;
- if (v3d->drawtype == OB_SOLID && v3d->drawtype_solid == V3D_LIGHTING_FLAT) {
- bm_face_orientation = DRW_STATE_MULTIPLY;
+ /*
+ Solid flat/studio lighting gives strange results when blending with the defaults.
+ */
+ if (v3d->drawtype == OB_SOLID) {
+ bm_face_orientation = DRW_STATE_BLEND;
}
}
else {