diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-12-08 17:00:46 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-12-08 17:04:05 +0300 |
commit | af47ae07023f4a5b817bedca82c7b007ddefc8ba (patch) | |
tree | d5c0307bd530415ce783b360cce7aa24fb624fc2 /source/blender/blenkernel/intern/group.c | |
parent | 0d4ab09da71f213083d5ee35efbb3ac0c7e6dd6a (diff) |
Fix group duplication bug
View Layer was not duplicated between destination and source.
This would lead to a crash if you duplicated the group and assigned
the new group to any object.
Diffstat (limited to 'source/blender/blenkernel/intern/group.c')
-rw-r--r-- | source/blender/blenkernel/intern/group.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/group.c b/source/blender/blenkernel/intern/group.c index a68111de034..1bc2e951fe7 100644 --- a/source/blender/blenkernel/intern/group.c +++ b/source/blender/blenkernel/intern/group.c @@ -136,6 +136,7 @@ void BKE_group_copy_data(Main *UNUSED(bmain), Group *group_dst, const Group *gro BKE_collection_copy_data(master_collection_dst, master_collection_src, flag_subdata); + group_dst->view_layer = MEM_dupallocN(group_src->view_layer); BKE_view_layer_copy_data(group_dst->view_layer, group_src->view_layer, master_collection_dst, master_collection_src, flag_subdata); |