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>2016-01-24 14:01:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-24 14:03:53 +0300
commit82577a7d7b9b3e5b3207223d2064aa602f124999 (patch)
tree9ff1121971395b9c8e020b730135de730886aacf /source/blender/blenkernel/intern/depsgraph.c
parent54b992ae6159d0bf788adaa5d585d82d17333f1e (diff)
Depsgraph: Add missing relations between driver and particle settings
While it's not really working reliably to drive something on runtime it's handy to have such possibility to tune particle system using proxies in the scene files. Just another quick thing for the Nieve project.
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index e313ad7c2a1..7f73e8f6214 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -764,6 +764,10 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Main *bmain, Sc
ListBase *effectors = NULL;
EffectorCache *eff;
+ if (part->adt) {
+ dag_add_driver_relation(part->adt, dag, node, 1);
+ }
+
dag_add_relation(dag, node, node, DAG_RL_OB_DATA, "Particle-Object Relation");
if (!psys_check_enabled(ob, psys))