Fix editors showing old data-block name after renaming in Outliner
E.g. the graph editor channels list would still show the old name of a material that was renamed in the Outliner. Same for the Asset Browser when showing data-blocks in the "Current File" repository. The Outliner didn't send the notifier for some data-block types that editors listen to for data-block name changes.
This commit is contained in:
parent
ca475479eb
commit
96fa78f5b0
|
@ -697,13 +697,13 @@ static void namebutton_fn(bContext *C, void *tsep, char *oldname)
|
|||
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
|
||||
}
|
||||
DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE);
|
||||
WM_event_add_notifier(C, NC_ID | NA_RENAME, NULL);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
WM_event_add_notifier(C, NC_ID | NA_RENAME, NULL);
|
||||
break;
|
||||
}
|
||||
WM_event_add_notifier(C, NC_ID | NA_RENAME, NULL);
|
||||
|
||||
/* Check the library target exists */
|
||||
if (te->idcode == ID_LI) {
|
||||
Library *lib = (Library *)tselem->id;
|
||||
|
|
Loading…
Reference in New Issue