[Bf-blender-cvs] [96fa78f5b02] master: Fix editors showing old data-block name after renaming in Outliner
Julian Eisel
noreply at git.blender.org
Thu Jan 21 22:57:59 CET 2021
Commit: 96fa78f5b027d8b3a851ad42ec2a63e5c25f237a
Author: Julian Eisel
Date: Thu Jan 21 22:48:29 2021 +0100
Branches: master
https://developer.blender.org/rB96fa78f5b027d8b3a851ad42ec2a63e5c25f237a
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.
===================================================================
M source/blender/editors/space_outliner/outliner_draw.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index d6658e59d8e..15590222423 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -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;
More information about the Bf-blender-cvs
mailing list