[Bf-blender-cvs] [1335f2d2722] master: Fix T65889: Hair Particles not updating when using image sequence
Sergey Sharybin
noreply at git.blender.org
Thu May 28 10:59:26 CEST 2020
Commit: 1335f2d27221bed10a5ab74a06fdc96e6a8e4bb9
Author: Sergey Sharybin
Date: Thu May 28 10:46:04 2020 +0200
Branches: master
https://developer.blender.org/rB1335f2d27221bed10a5ab74a06fdc96e6a8e4bb9
Fix T65889: Hair Particles not updating when using image sequence
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index db8d9ed516a..c98aab51654 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -2428,6 +2428,11 @@ void DepsgraphRelationBuilder::build_texture(Tex *texture)
ComponentKey animation_key(&texture->id, NodeType::ANIMATION);
add_relation(animation_key, texture_key, "Datablock Animation");
}
+
+ if (BKE_image_user_id_has_animation(&texture->id)) {
+ ComponentKey image_animation_key(&texture->id, NodeType::IMAGE_ANIMATION);
+ add_relation(image_animation_key, texture_key, "Datablock Image Animation");
+ }
}
void DepsgraphRelationBuilder::build_image(Image *image)
More information about the Bf-blender-cvs
mailing list