[Bf-blender-cvs] [b2a96276001] master: Fix T62903: black line in UV editor on 32 bit

Brecht Van Lommel noreply at git.blender.org
Mon Jul 8 17:36:52 CEST 2019


Commit: b2a962760013173824ead92c1923d62bb74fa151
Author: Brecht Van Lommel
Date:   Mon Jul 8 17:34:22 2019 +0200
Branches: master
https://developer.blender.org/rBb2a962760013173824ead92c1923d62bb74fa151

Fix T62903: black line in UV editor on 32 bit

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

M	source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c

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

diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
index 780cca66fb9..ba3b8c2602e 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
@@ -101,6 +101,7 @@ static bool gizmo_calc_rect_view_margin(const wmGizmo *gz, const float dims[2],
   handle_size *= gz->scale_final;
   float scale_xy[2];
   if (!gizmo_calc_rect_view_scale(gz, dims, scale_xy)) {
+    zero_v2(margin);
     return false;
   }
   margin[0] = ((handle_size * scale_xy[0]));



More information about the Bf-blender-cvs mailing list