Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-02-19 16:50:22 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-02-19 16:52:03 +0300
commit73079e01fd421a4a1d7b1518334985479fdf744f (patch)
treef5dda7aa44caa1125a7648da07e1cfeb04ca9ae8 /source
parent065630e717ca22309d2f83133200b2be710123ff (diff)
Outliner: Fix crash when renaming Group layer collection
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c2
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;
}