Fix T60068: missing viewport update when renaming objects in outliner.

Differential Revision: https://developer.blender.org/D4155
This commit is contained in:
Sebastian Parborg 2019-01-04 14:21:35 +01:00 committed by Brecht Van Lommel
parent 2c21e3e35f
commit f2ebb7bb79
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #60068, Viewport shows old cached object names
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
if (ob->type == OB_MBALL) {
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: