[Bf-blender-cvs] [48dc5c14d47] blender2.8: Fix crashing of EEVEE/Clay engines when importing an Alembic file

Sybren A. Stüvel noreply at git.blender.org
Tue Apr 10 18:25:04 CEST 2018


Commit: 48dc5c14d47302a9d50e3bd82dea5b6a22f2c244
Author: Sybren A. Stüvel
Date:   Tue Apr 10 18:12:25 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB48dc5c14d47302a9d50e3bd82dea5b6a22f2c244

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.

===================================================================

M	source/blender/alembic/intern/alembic_capi.cc

===================================================================

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);
 	}



More information about the Bf-blender-cvs mailing list