diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-02-19 16:50:22 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-02-19 16:52:03 +0300 |
commit | 73079e01fd421a4a1d7b1518334985479fdf744f (patch) | |
tree | f5dda7aa44caa1125a7648da07e1cfeb04ca9ae8 /source/blender/editors/space_outliner | |
parent | 065630e717ca22309d2f83133200b2be710123ff (diff) |
Outliner: Fix crash when renaming Group layer collection
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index e85f8fdc377..90e59a677ac 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -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; } |