diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-27 19:52:01 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-27 20:11:25 +0300 |
commit | 9c546c70d703b33fa6c5a2cfb70809bef7ba0723 (patch) | |
tree | ab277006347068bbf6c32889be748efa893f0b50 /source/blender/editors/object | |
parent | 365a5b75c11e2ab7b43edf4100e74c61cb66a7c1 (diff) |
Fix localview duplicated objects not in localview
Following the behaviour present in Blender 2.7x, where if you duplicate
an object it will show in all the local views the original object was
visible.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 8b592d3b7ef..50f36d7af47 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -2188,6 +2188,7 @@ static Base *object_add_duplicate_internal(Main *bmain, Scene *scene, ViewLayer BKE_collection_object_add(bmain, layer_collection->collection, obn); } basen = BKE_view_layer_base_find(view_layer, obn); + basen->local_view_bits = base->local_view_bits; /* 1) duplis should end up in same collection as the original * 2) Rigid Body sim participants MUST always be part of a collection... |