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.
This commit is contained in:
Campbell Barton
2024-03-28 13:45:24 +11:00
parent b0328f67a9
commit b28861682e

View File

@@ -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;
}