[Bf-blender-cvs] [47b9d0d0403] blender2.8: Fix T51777: Separating objects by selected vertices in Eevee causes crash
Dalai Felinto
noreply at git.blender.org
Mon Jun 12 18:37:36 CEST 2017
Commit: 47b9d0d040300fcd56db20a8a898166d47520bcc
Author: Dalai Felinto
Date: Mon Jun 12 18:10:37 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB47b9d0d040300fcd56db20a8a898166d47520bcc
Fix T51777: Separating objects by selected vertices in Eevee causes crash
I considered just copying the evaluated data from the LayerCollection.
However we need to run the evaluation so Depsgraph can handle overrides.
I will double-check with Sergey Sharybin.
===================================================================
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 2649a6d6d69..40ec1b56d17 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2064,6 +2064,9 @@ static Base *object_add_duplicate_internal(Main *bmain, Scene *scene, SceneLayer
obn = ID_NEW_SET(ob, BKE_object_copy(bmain, ob));
DEG_id_tag_update(&obn->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
+ /* TODO(sergey): Use proper flag for tagging here. */
+ DEG_id_tag_update(&scene->id, 0);
+
BKE_collection_object_add_from(scene, ob, obn);
basen = BKE_scene_layer_base_find(sl, obn);
More information about the Bf-blender-cvs
mailing list