[Bf-blender-cvs] [9c546c70d70] blender2.8: Fix localview duplicated objects not in localview

Dalai Felinto noreply at git.blender.org
Tue Nov 27 18:15:09 CET 2018


Commit: 9c546c70d703b33fa6c5a2cfb70809bef7ba0723
Author: Dalai Felinto
Date:   Tue Nov 27 14:52:01 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB9c546c70d703b33fa6c5a2cfb70809bef7ba0723

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.

===================================================================

M	source/blender/editors/object/object_add.c

===================================================================

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...



More information about the Bf-blender-cvs mailing list