Fix (unreported) outliner not redrawing on 'removed ID' notification.

Could lead to crahses in some cases, with outliner drawing code
accessing freed ID data in its tree.
This commit is contained in:
Bastien Montagne 2022-08-18 12:23:47 +02:00
parent f6a6665947
commit 80b7902a56
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ static void outliner_main_region_listener(const wmRegionListenerParams *params)
}
break;
case NC_ID:
if (ELEM(wmn->action, NA_RENAME, NA_ADDED)) {
if (ELEM(wmn->action, NA_RENAME, NA_ADDED, NA_REMOVED)) {
ED_region_tag_redraw(region);
}
break;