Commit: 6fdddae2b05a72c2f58d64d14dead4885460c151
Author: Hans Goudey
Date: Mon Nov 28 16:29:30 2022 -0600
Branches: master
https://developer.blender.org/rB6fdddae2b05a72c2f58d64d14dead4885460c151
Fix T102804: Click & Drag on toggles no longer possible
Typo in 136ea84d9a3791aafb8
===================================================================
M source/blender/editors/interface/interface_handlers.cc
===================================================================
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]);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs