Outliner: Update buttons editor when renaming collection

Reported by Pablo Vazquez (venomgfx) outside phabricator.
This commit is contained in:
Dalai Felinto 2018-02-19 10:48:05 -03:00
parent 30d0194585
commit 065630e717
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
{
SceneCollection *sc = outliner_scene_collection_from_tree_element(te);
BKE_collection_rename(scene, sc, te->name);
WM_event_add_notifier(C, NC_SCENE | ND_LAYER, scene);
break;
}
}