[Bf-blender-cvs] [582a0b7e5a3] master: Fix T78756: White UV drawing is displayed as Dashed

Campbell Barton noreply at git.blender.org
Fri Jul 10 11:07:40 CEST 2020


Commit: 582a0b7e5a3717b7d45330981d736d11f6efba62
Author: Campbell Barton
Date:   Fri Jul 10 19:02:18 2020 +1000
Branches: master
https://developer.blender.org/rB582a0b7e5a3717b7d45330981d736d11f6efba62

Fix T78756: White UV drawing is displayed as Dashed

===================================================================

M	source/blender/editors/uvedit/uvedit_draw.c

===================================================================

diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index c6b8b0cd02d..9f716739b1c 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -413,7 +413,7 @@ static void draw_uvs(SpaceImage *sima,
       UI_GetThemeColor3fv(TH_EDGE_SELECT, col2);
       col2[3] = overlay_alpha;
 
-      float dash_width = (sima->dt_uv & SI_UVDT_DASH) ? (4.0f * UI_DPI_FAC) : 9999.0f;
+      const float dash_width = (sima->dt_uv == SI_UVDT_DASH) ? (4.0f * UI_DPI_FAC) : 9999.0f;
       eGPUBuiltinShader shader = (interpedges) ? GPU_SHADER_2D_UV_EDGES_SMOOTH :
                                                  GPU_SHADER_2D_UV_EDGES;



More information about the Bf-blender-cvs mailing list