Fix crashing of EEVEE/Clay engines when importing an Alembic file

The dependency graph still isn't updated properly, so animated meshes don't
move in EEVEE/Clay, but at least Blender doesn't crash.
This commit is contained in:
Sybren A. Stüvel 2018-04-10 18:12:25 +02:00
parent 3dce5b2ef9
commit 48dc5c14d4
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #52614, Blender 2.8 crashes when importing any Alembic file
1 changed files with 2 additions and 1 deletions

View File

@ -858,9 +858,10 @@ static void import_endjob(void *user_data)
base = BKE_view_layer_base_find(view_layer, ob);
BKE_view_layer_base_select(view_layer, base);
DEG_id_tag_update_ex(data->bmain, &ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
DEG_id_tag_update_ex(data->bmain, &ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME | DEG_TAG_BASE_FLAGS_UPDATE);
}
DEG_id_tag_update(&data->scene->id, 0);
DEG_relations_tag_update(data->bmain);
}