[Bf-blender-cvs] [73079e01fd4] blender2.8: Outliner: Fix crash when renaming Group layer collection

Dalai Felinto noreply at git.blender.org
Mon Feb 19 14:52:18 CET 2018


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



More information about the Bf-blender-cvs mailing list