Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-01-22 00:48:29 +0300
committerJulian Eisel <julian@blender.org>2021-01-22 00:56:38 +0300
commit96fa78f5b027d8b3a851ad42ec2a63e5c25f237a (patch)
tree8b5129eadde2bca2027c991aeba22927fcd36599 /source/blender/editors/space_outliner/outliner_draw.c
parentca475479eb26b4798857b4e67f03eea89324da4b (diff)
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.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c4
1 files changed, 2 insertions, 2 deletions
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;