Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Show First 20 Lines • Show All 6,757 Lines • ▼ Show 20 Lines | block = uiLayoutGetBlock(row); | ||||
| 0.0f, | 0.0f, | ||||
| 0.0f, | 0.0f, | ||||
| 0.0f, | 0.0f, | ||||
| 0, | 0, | ||||
| NULL); | NULL); | ||||
| but_progress->progress = progress; | but_progress->progress = progress; | ||||
| UI_but_func_tooltip_set(&but_progress->but, progress_tooltip_func, tip_arg); | UI_but_func_tooltip_set(&but_progress->but, progress_tooltip_func, tip_arg); | ||||
| but_progress->but.drawflag &= ~(UI_BUT_TEXT_LEFT | UI_BUT_TEXT_RIGHT); | |||||
Severin: These flags are set in `ui_def_but()`: https://developer.blender. | |||||
| } | } | ||||
| if (!wm->is_interface_locked) { | if (!wm->is_interface_locked) { | ||||
| uiDefIconTextBut(block, | uiDefIconTextBut(block, | ||||
| UI_BTYPE_BUT, | UI_BTYPE_BUT, | ||||
| handle_event, | handle_event, | ||||
| ICON_PANEL_CLOSE, | ICON_PANEL_CLOSE, | ||||
| "", | "", | ||||
| ▲ Show 20 Lines • Show All 582 Lines • Show Last 20 Lines | |||||
These flags are set in ui_def_but(): https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface.c$4102-4112.
I don't think they should be set in the first place, so I'd just remove UI_BTYPE_PROGRESS_BAR from the ELEM() there. This is the only use case of this button type, so that should be safe to do.