Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-05-11 18:05:24 +0300
committerJulian Eisel <julian@blender.org>2022-05-11 18:07:02 +0300
commit59cd616534b46ab85b4324a0886bd9eb8876a48b (patch)
tree3b086ad7a0f55b60ef05eb98c512bfc4c67762c7 /source/blender/editors/interface/interface_anim.c
parent8d528241a9f3b36cd5ec36479135c6fbf49d1cad (diff)
UI: Update rest of UI code for increased button flag bitfield
Needed after 98a04ed45242.
Diffstat (limited to 'source/blender/editors/interface/interface_anim.c')
-rw-r--r--source/blender/editors/interface/interface_anim.c4
1 files changed, 2 insertions, 2 deletions
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);
}