Fix T39203: Boid particle naming UI semi-freeze

uiList was not handling correctly UI_BUT_DISABLED TEX name buttons!
This commit is contained in:
Bastien Montagne 2014-03-18 15:24:34 +01:00
parent 5febb09639
commit c450ea2ab0
Notes: blender-bot 2023-02-14 10:59:08 +01:00
Referenced by issue #39203, Boid particle naming UI semi-freeze
1 changed files with 1 additions and 1 deletions

View File

@ -2911,7 +2911,7 @@ static uiBut *ui_but_list_row_text_activate(bContext *C, uiBut *but, uiHandleBut
ARegion *ar = CTX_wm_region(C);
uiBut *labelbut = ui_but_find_mouse_over_ex(ar, event->x, event->y, true);
if (labelbut && labelbut->type == TEX) {
if (labelbut && labelbut->type == TEX && !(labelbut->flag & UI_BUT_DISABLED)) {
/* exit listrow */
data->cancel = true;
button_activate_exit(C, but, data, false, false);