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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-05-19 16:18:39 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-05-19 16:18:39 +0300
commitcc485191e4c1fc344efc1f0bb17d17e6ff08a8fc (patch)
tree845ef5403b27496d90441483e7dfe8b6f07f79e2 /source/blender/editors/uvedit
parenteb1cb7cb819d08633292656cf62ee299dfce6130 (diff)
parent8c4965f86d67b10f1b9b5b8d6ca29cb2c233d529 (diff)
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index f8cef95c776..dcc9082d3dd 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -223,7 +223,6 @@ static void draw_uvs_shadow(SpaceImage *sima,
{
Object *ob_eval = DEG_get_evaluated_object(depsgraph, obedit);
Mesh *me = ob_eval->data;
- const float overlay_alpha = sima->uv_opacity;
float col[4];
UI_GetThemeColor4fv(TH_UV_SHADOW, col);
@@ -236,11 +235,7 @@ static void draw_uvs_shadow(SpaceImage *sima,
GPU_line_smooth(true);
GPU_blend(true);
}
- else if (overlay_alpha < 1.0f) {
- GPU_blend(true);
- }
- col[3] = overlay_alpha;
GPU_batch_program_set_builtin(edges, GPU_SHADER_2D_UV_UNIFORM_COLOR);
GPU_batch_uniform_4fv(edges, "color", col);
GPU_batch_draw(edges);
@@ -249,9 +244,6 @@ static void draw_uvs_shadow(SpaceImage *sima,
GPU_line_smooth(false);
GPU_blend(false);
}
- else if (overlay_alpha < 1.0f) {
- GPU_blend(false);
- }
}
}