From 6fdddae2b05a72c2f58d64d14dead4885460c151 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 28 Nov 2022 16:29:30 -0600 Subject: [PATCH] Fix T102804: Click & Drag on toggles no longer possible Typo in 136ea84d9a3791aafb8 --- source/blender/editors/interface/interface_handlers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/interface/interface_handlers.cc b/source/blender/editors/interface/interface_handlers.cc index fdecfb4ea60..21410a3b9fc 100644 --- a/source/blender/editors/interface/interface_handlers.cc +++ b/source/blender/editors/interface/interface_handlers.cc @@ -1629,8 +1629,8 @@ static bool ui_drag_toggle_set_xy_xy( bool changed = false; LISTBASE_FOREACH (uiBlock *, block, ®ion->uiblocks) { - float xy_a_block[2] = {float(xy_src[0]), float(xy_src[0])}; - float xy_b_block[2] = {float(xy_dst[0]), float(xy_dst[0])}; + float xy_a_block[2] = {float(xy_src[0]), float(xy_src[1])}; + float xy_b_block[2] = {float(xy_dst[0]), float(xy_dst[1])}; ui_window_to_block_fl(region, block, &xy_a_block[0], &xy_a_block[1]); ui_window_to_block_fl(region, block, &xy_b_block[0], &xy_b_block[1]);