Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-11-27 19:52:01 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-11-27 20:11:25 +0300
commit9c546c70d703b33fa6c5a2cfb70809bef7ba0723 (patch)
treeab277006347068bbf6c32889be748efa893f0b50 /source/blender/editors/object/object_add.c
parent365a5b75c11e2ab7b43edf4100e74c61cb66a7c1 (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/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c1
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...