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>2017-06-12 19:10:37 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-06-12 19:35:39 +0300
commit47b9d0d040300fcd56db20a8a898166d47520bcc (patch)
tree90a6e7fd32b131d64cf58853bb4e416a95c1737b /source/blender/editors/object
parent193a1df8fa8d06059949715d9d71c9bfd2ddf82e (diff)
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.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c3
1 files changed, 3 insertions, 0 deletions
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);