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:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-04-10 19:12:25 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-04-10 19:24:24 +0300
commit48dc5c14d47302a9d50e3bd82dea5b6a22f2c244 (patch)
treeb18508c150adbd3104c6b2f29f16f78ce1b8d9ea /source/blender/alembic
parent3dce5b2ef9f7881c13b50476802e4db1608955be (diff)
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.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r--source/blender/alembic/intern/alembic_capi.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc
index 3221ebe7778..6a8b82c6d53 100644
--- a/source/blender/alembic/intern/alembic_capi.cc
+++ b/source/blender/alembic/intern/alembic_capi.cc
@@ -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);
}