Outliner: Fix crash when renaming Group layer collection

This commit is contained in:
Dalai Felinto 2018-02-19 10:50:22 -03:00
parent 065630e717
commit 73079e01fd
Notes: blender-bot 2023-10-13 01:54:23 +02:00
Referenced by commit a16c0ebc59, Fix warning after fix for crash on renaming group collections
1 changed files with 1 additions and 1 deletions

View File

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