diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-18 09:25:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-18 09:25:05 +0300 |
commit | b2f0803b5b584c958ca34fbcf39bc48bc45b6fd3 (patch) | |
tree | af5a4784f0d886af2790e68e50edb0249caf51f6 /source/blender/editors/interface/interface_layout.c | |
parent | af51ec3214ec3980c6d729580ed69a7a90e34667 (diff) |
Fix T55511: Decorator drag makes many undo steps
Each keyframe made a separate undo step.
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 1ce34fec118..ff9b08a65c9 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1720,7 +1720,7 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index block, UI_BTYPE_BUT, 0, ICON_DOT, 0, 0, UI_UNIT_X, UI_UNIT_Y, NULL, 0.0, 0.0, 0.0, 0.0, TIP_("Animate property")); UI_but_func_set(but, ui_but_anim_decorate_cb, but, NULL); - but->flag |= UI_BUT_DRAG_LOCK; + but->flag |= UI_BUT_UNDO | UI_BUT_DRAG_LOCK; } else { /* We may show other information here in future, for now use empty space. */ |