Depsgraph: Shrinkwrap constraint actually depends on geometry

This commit is contained in:
Sergey Sharybin 2017-02-27 16:00:39 +01:00
parent 5acac13eb4
commit bf7006c15a

@ -544,10 +544,16 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Main *bmain, Sc
if (ct->tar->type == OB_MESH)
node3->customdata_mask |= CD_MASK_MDEFORMVERT;
}
else if (ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_SPLINEIK))
else if (ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH,
CONSTRAINT_TYPE_CLAMPTO,
CONSTRAINT_TYPE_SPLINEIK,
CONSTRAINT_TYPE_SHRINKWRAP))
{
dag_add_relation(dag, node3, node, DAG_RL_DATA_DATA | DAG_RL_OB_DATA, cti->name);
else
}
else {
dag_add_relation(dag, node3, node, DAG_RL_OB_DATA, cti->name);
}
}
}