From 59cd616534b46ab85b4324a0886bd9eb8876a48b Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 11 May 2022 17:05:24 +0200 Subject: UI: Update rest of UI code for increased button flag bitfield Needed after 98a04ed45242. --- source/blender/editors/interface/interface_anim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/interface/interface_anim.c') diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c index e838ce37d8e..b77d48552c7 100644 --- a/source/blender/editors/interface/interface_anim.c +++ b/source/blender/editors/interface/interface_anim.c @@ -144,7 +144,7 @@ void ui_but_anim_decorate_update_from_flag(uiButDecorator *decorator_but) return; } - const int flag = but_anim->flag; + const uint64_t flag = but_anim->flag; if (flag & UI_BUT_DRIVEN) { but->icon = ICON_DECORATE_DRIVER; @@ -162,7 +162,7 @@ void ui_but_anim_decorate_update_from_flag(uiButDecorator *decorator_but) but->icon = ICON_DECORATE; } - const int flag_copy = (UI_BUT_DISABLED | UI_BUT_INACTIVE); + const uint64_t flag_copy = (UI_BUT_DISABLED | UI_BUT_INACTIVE); but->flag = (but->flag & ~flag_copy) | (flag & flag_copy); } -- cgit v1.2.3