Outliner: Fix crash when renaming Group layer collection
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue