diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 13:08:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 13:15:32 +0300 |
commit | d53d78ac45b53e952824d1332be977478692129c (patch) | |
tree | 739820474b026c5dbd55eccb2e7154f9c17dd85e /source/blender/editors/interface | |
parent | e960920f2ff3c0484f4467adfc47df8e1df11e65 (diff) |
UI: correct decorator buttons 'enabled' flag
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_anim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c index 624ba5dd55d..82fe32e3747 100644 --- a/source/blender/editors/interface/interface_anim.c +++ b/source/blender/editors/interface/interface_anim.c @@ -122,6 +122,9 @@ void ui_but_anim_decorate_update_from_flag(uiBut *but) else { but->icon = ICON_DOT; } + + const int flag_copy = (UI_BUT_DISABLED | UI_BUT_INACTIVE); + but->flag = (but->flag & ~flag_copy) | (flag & flag_copy); } /** |