From b28861682eea30f2ff257dc52cec95c809a5ecd7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2024 13:45:24 +1100 Subject: [PATCH] Fix 2D cage gizmo failing to refresh when Shift is pressed/released Detecting when the Shift state "changed" wasn't working because of a self-assignment. Since cursor motion always refreshes, this isn't an especially noticeable an issue. --- .../blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc index 63cf00be94c..cb92d6621a5 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc +++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.cc @@ -1090,7 +1090,7 @@ static int gizmo_cage2d_modal(bContext *C, * remains unused (this controls #WM_GIZMO_TWEAK_PRECISE by default). */ const bool use_temp_uniform = (event->modifier & KM_SHIFT) != 0; const bool changed = data->use_temp_uniform != use_temp_uniform; - data->use_temp_uniform = data->use_temp_uniform; + data->use_temp_uniform = use_temp_uniform; if (use_temp_uniform) { transform_flag |= ED_GIZMO_CAGE_XFORM_FLAG_SCALE_UNIFORM; }