Revert #116228: Check Interactivity in button comparisons

Revert of 5741f7b8a9 as this has caused issues as reported in #116384
and #116426.

Pull Request: https://projects.blender.org/blender/blender/pulls/116437
This commit is contained in:
Harley Acheson 2023-12-21 17:08:47 +01:00 committed by Harley Acheson
parent 66409b3860
commit 548b45d13b
1 changed files with 0 additions and 7 deletions

View File

@ -774,13 +774,6 @@ static bool ui_but_equals_old(const uiBut *but, const uiBut *oldbut)
return false;
}
/* If the old button is active for interaction, but the new one isn't interactive,
* do not consider them matching. Avoids incorrect matches with label buttons, which
* usually do not have data that can be used for comparison. See #114461. */
if (oldbut->active && !ui_but_is_interactive(but, false)) {
return false;
}
if ((but->type == UI_BTYPE_VIEW_ITEM) && (oldbut->type == UI_BTYPE_VIEW_ITEM)) {
uiButViewItem *but_item = (uiButViewItem *)but;
uiButViewItem *oldbut_item = (uiButViewItem *)oldbut;