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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-29 13:58:23 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-29 16:46:34 +0300
commitfefb7280963bdc27d203b479546fd4c5344ada74 (patch)
tree662d9033b6a65a02c08d9cd216ece34cc5aa8344
parentc706d1ab7a8d180cf91cf4d9eb3848a58278ddef (diff)
Fix T45022: Update missing when linking objects with new depsgraph
-rw-r--r--source/blender/blenkernel/intern/library.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 39bcf519f95..f1000990e1e 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -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);
}