Outliner: Fix crash when renaming Group layer collection
This commit is contained in:
@@ -409,7 +409,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
|
|||||||
case TSE_LAYER_COLLECTION:
|
case TSE_LAYER_COLLECTION:
|
||||||
{
|
{
|
||||||
SceneCollection *sc = outliner_scene_collection_from_tree_element(te);
|
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);
|
WM_event_add_notifier(C, NC_SCENE | ND_LAYER, scene);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user