Commit: 73079e01fd421a4a1d7b1518334985479fdf744f
Author: Dalai Felinto
Date:   Mon Feb 19 10:50:22 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB73079e01fd421a4a1d7b1518334985479fdf744f

Outliner: Fix crash when renaming Group layer collection

===================================================================

M       source/blender/editors/space_outliner/outliner_draw.c

===================================================================

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;
                                }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to