UI: correct decorator buttons 'enabled' flag

This commit is contained in:
Campbell Barton 2018-06-17 12:08:33 +02:00
parent e960920f2f
commit d53d78ac45
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
/**