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:
-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 {