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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user