diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-02-19 17:10:19 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-02-19 17:12:46 +0300 |
commit | a16c0ebc59033b0b26b8e1d832a28739cfbd9ecd (patch) | |
tree | 86402e2429eefb18ed1b91d72400cdd358bf1d38 /source/blender/makesrna/intern/rna_layer.c | |
parent | 73079e01fd421a4a1d7b1518334985479fdf744f (diff) |
Fix warning after fix for crash on renaming group collections
Warning introduced on: 73079e01fd4.
Diffstat (limited to 'source/blender/makesrna/intern/rna_layer.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_layer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_layer.c b/source/blender/makesrna/intern/rna_layer.c index 558b963a768..7a1c1710a87 100644 --- a/source/blender/makesrna/intern/rna_layer.c +++ b/source/blender/makesrna/intern/rna_layer.c @@ -97,7 +97,7 @@ static void rna_SceneCollection_name_set(PointerRNA *ptr, const char *value) { Scene *scene = (Scene *)ptr->id.data; SceneCollection *sc = (SceneCollection *)ptr->data; - BKE_collection_rename(scene, sc, value); + BKE_collection_rename(&scene->id, sc, value); } static PointerRNA rna_SceneCollection_objects_get(CollectionPropertyIterator *iter) @@ -655,9 +655,9 @@ static int rna_LayerCollection_name_length(PointerRNA *ptr) static void rna_LayerCollection_name_set(PointerRNA *ptr, const char *value) { - Scene *scene = (Scene *)ptr->id.data; + ID *owner_id = (ID *)ptr->id.data; SceneCollection *sc = ((LayerCollection *)ptr->data)->scene_collection; - BKE_collection_rename(scene, sc, value); + BKE_collection_rename(owner_id, sc, value); } static PointerRNA rna_LayerCollection_objects_get(CollectionPropertyIterator *iter) |