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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-10 05:13:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-10 05:13:24 +0400
commitb0312d59914419884098ae42fbbd648eb32256bc (patch)
tree2ecb5cb2f54bebac23b696a8630e35edd4fcd585 /source
parent3f34a88fc821281079712effdc1608169cc37980 (diff)
fix [#35948] Toggle-Draw AutoKeyframe Bug
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_handlers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index c0a05953156..b3ad99c9690 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -875,6 +875,10 @@ static bool ui_but_start_drag(bContext *C, uiBut *but, uiHandleButtonData *data,
uiDragToggleHandle *drag_info = MEM_callocN(sizeof(*drag_info), __func__);
ARegion *ar_prev;
+ /* call here because regular mouse-up event wont run,
+ * typically 'button_activate_exit()' handles this */
+ ui_apply_autokey(C, but);
+
drag_info->is_set = ui_is_but_push(but);
drag_info->but_cent_start[0] = BLI_rctf_cent_x(&but->rect);
drag_info->but_cent_start[1] = BLI_rctf_cent_y(&but->rect);