diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-14 20:27:17 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-14 20:29:42 +0300 |
commit | 57b5852bc8b8188e73e2ffd7c05aaa3f409c3025 (patch) | |
tree | 5f381d0234dd84b0f8fbc90968211d425cc2f271 /source/blender/editors/interface/interface.c | |
parent | 7b38ad7286937d66d45a0c2c4c2d355bfa588e5f (diff) |
Fix T62120: number button editing outside of soft max range jumps.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index efabacd6566..11c2161315e 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2888,7 +2888,7 @@ void UI_block_theme_style_set(uiBlock *block, char theme_style) * \param validate: When set, this function may change the button value. * Otherwise treat the button value as read-only. */ -void ui_but_update_ex(uiBut *but, const bool validate) +static void ui_but_update_ex(uiBut *but, const bool validate) { /* if something changed in the button */ double value = UI_BUT_VALUE_UNSET; @@ -2897,7 +2897,7 @@ void ui_but_update_ex(uiBut *but, const bool validate) ui_but_update_select_flag(but, &value); /* only update soft range while not editing */ - if (!(but->editval || but->editstr || but->editvec)) { + if (!ui_but_is_editing(but)) { if ((but->rnaprop != NULL) || (but->poin && (but->pointype & UI_BUT_POIN_TYPES))) { |