Fix T56778: Alembic Override Frame does not update on playback
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Mar 2019 15:48:14 +0000 (16:48 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 20 Mar 2019 15:48:35 +0000 (16:48 +0100)
source/blender/depsgraph/intern/builder/deg_builder_relations.cc

index d4bd63f..38f54c7 100644 (file)
@@ -2501,6 +2501,12 @@ void DepsgraphRelationBuilder::build_cachefile(CacheFile *cache_file)
        }
        /* Animation. */
        build_animdata(&cache_file->id);
+       if (check_id_has_anim_component(&cache_file->id)) {
+               ComponentKey animation_key(&cache_file->id, NodeType::ANIMATION);
+               ComponentKey datablock_key(&cache_file->id,
+                                          NodeType::CACHE);
+               add_relation(animation_key, datablock_key, "Datablock Animation");
+       }
 }
 
 void DepsgraphRelationBuilder::build_mask(Mask *mask)