Fix T54580: Pointer buttons skip undo push
This commit is contained in:
parent
be2e549111
commit
6bb825e083
Notes:
blender-bot
2023-02-14 08:42:53 +01:00
Referenced by issue #54580, Node editor: Changing object pointers for multiple nodes registers as a single action for undo
|
@ -3580,8 +3580,16 @@ static uiBut *ui_def_but_rna(
|
|||
ui_def_but_icon(but, icon, UI_HAS_ICON);
|
||||
}
|
||||
|
||||
if ((type == UI_BTYPE_MENU) && (but->dt == UI_EMBOSS_PULLDOWN)) {
|
||||
but->flag |= UI_BUT_ICON_SUBMENU;
|
||||
if (type == UI_BTYPE_MENU) {
|
||||
if (but->dt == UI_EMBOSS_PULLDOWN) {
|
||||
but->flag |= UI_BUT_ICON_SUBMENU;
|
||||
}
|
||||
}
|
||||
else if (type == UI_BTYPE_SEARCH_MENU) {
|
||||
if (proptype == PROP_POINTER) {
|
||||
/* Search buttons normally don't get undo, see: T54580. */
|
||||
but->flag |= UI_BUT_UNDO;
|
||||
}
|
||||
}
|
||||
|
||||
const char *info;
|
||||
|
|
Loading…
Reference in New Issue