Fix 3DView not updating on some NC_ID notifiers.

Outliner uses a lot `NC_ID | NA_EDITED` e.g., which was not caught by
the View3D editor for update.
This commit is contained in:
Bastien Montagne
2021-03-18 15:28:21 +01:00
parent 06351c0504
commit 07f9a73a8f

View File

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