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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-08 18:34:22 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-08 18:34:22 +0300
commitb2a962760013173824ead92c1923d62bb74fa151 (patch)
tree65476a51f74a325906c18e3e280a5c10a1996a0b /source
parent50d0a7483384fe47b768af8902cb9a1e8d48d155 (diff)
Fix T62903: black line in UV editor on 32 bit
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c1
1 files changed, 1 insertions, 0 deletions
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]));