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-24 12:27:56 +0300
committerJulian Eisel <julian@blender.org>2022-05-24 12:31:19 +0300
commitbc1eb513ab946c74ea6e535ba8b92a089bebf12f (patch)
tree5954434e3ada5e520f770b7756827ed5688cb61e /source/blender/editors/interface
parentcd77bf44d4f1a3248778453b9b89351118116b2b (diff)
Fix buttons not being grayed out
Was using the wrong bitfield in flag comparisons for the drawing code. The input handling wouldn't be affected. Own mistake in 0d7311345295.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_widgets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index e53d90a233e..3777ff31b26 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -1302,14 +1302,14 @@ static void widgetbase_draw(uiWidgetBase *wtb, const uiWidgetColors *wcol)
static float widget_alpha_factor(const uiWidgetStateInfo *state)
{
- if (state->but_drawflag & (UI_BUT_INACTIVE | UI_BUT_DISABLED)) {
- if (state->but_drawflag & UI_SEARCH_FILTER_NO_MATCH) {
+ if (state->but_flag & (UI_BUT_INACTIVE | UI_BUT_DISABLED)) {
+ if (state->but_flag & UI_SEARCH_FILTER_NO_MATCH) {
return 0.25f;
}
return 0.5f;
}
- if (state->but_drawflag & UI_SEARCH_FILTER_NO_MATCH) {
+ if (state->but_flag & UI_SEARCH_FILTER_NO_MATCH) {
return 0.5f;
}