After talking with Matt about this, added notifier NC_ID to handle ID changes, specif...
[blender.git] / source / blender / editors / space_outliner / outliner.c
index 39eecd7d2de8526833226071c41d6b9466e81fe5..bfb1724af3557b35d6a82472bfbdce97036d05aa 100644 (file)
@@ -4747,7 +4747,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
                                case ID_SCE:
                                        WM_event_add_notifier(C, NC_SCENE, NULL); break;
                                default:
-                                       WM_event_add_notifier(C, NC_MATERIAL, NULL); break;
+                                       WM_event_add_notifier(C, NC_ID|ND_ID_RENAME, NULL); break;
                        }                                       
                        /* Check the library target exists */
                        if (te->idcode == ID_LI) {