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>2019-01-28 14:17:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-28 14:19:25 +0300
commit2e3433c1f7b86cabf4a6d84b5ccfa72d658c4b0a (patch)
treec168abe6ec2a5954fab95e1895d8331e97802907 /source/blender/depsgraph
parent409a21b32e11773f6eb32596430f0fcc70faf2fe (diff)
Fix T60127: Particles texture mapping coordinates objects
Part of the issue was a missing relation. Other part wes aboud object's inverse matrix never being updated.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 1cb9385c848..27d8a414b37 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1868,6 +1868,14 @@ void DepsgraphRelationBuilder::build_particle_settings(ParticleSettings *part)
particle_settings_reset_key,
"Particle Texture",
DEPSREL_FLAG_FLUSH_USER_EDIT_ONLY);
+ /* TODO(sergey): Consider moving texture space handling to an own
+ * function. */
+ if (mtex->texco == TEXCO_OBJECT && mtex->object != NULL) {
+ ComponentKey object_key(&mtex->object->id, DEG_NODE_TYPE_TRANSFORM);
+ add_relation(object_key,
+ particle_settings_eval_key,
+ "Particle Texture Space");
+ }
}
if (check_id_has_anim_component(&part->id)) {
ComponentKey animation_key(&part->id, DEG_NODE_TYPE_ANIMATION);