Fix T45022: Update missing when linking objects with new depsgraph

This commit is contained in:
Sergey Sharybin 2015-06-29 12:58:23 +02:00
parent e35a26fbef
commit 295d0c52a2
Notes: blender-bot 2023-02-14 09:01:32 +01:00
Referenced by issue #45022, Update missing when linking indirect curve object with new depsgraph (works with old depsgraph).
1 changed files with 5 additions and 3 deletions

View File

@ -556,9 +556,11 @@ void BKE_main_lib_objects_recalc_all(Main *bmain)
Object *ob;
/* flag for full recalc */
for (ob = bmain->object.first; ob; ob = ob->id.next)
if (ob->id.lib)
ob->recalc |= OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME;
for (ob = bmain->object.first; ob; ob = ob->id.next) {
if (ob->id.lib) {
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
}
}
DAG_id_type_tag(bmain, ID_OB);
}