Fix depsgraph: hair collision is actually enabled, so add the relations.
This commit is contained in:
parent
85ec0446e1
commit
5c4c2bebaa
|
@ -800,6 +800,10 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Main *bmain, Sc
|
|||
/* Actual code uses get_collider_cache */
|
||||
dag_add_collision_relations(dag, scene, ob, node, part->collision_group, ob->lay, eModifierType_Collision, NULL, true, "Particle Collision");
|
||||
}
|
||||
else if ((psys->flag & PSYS_HAIR_DYNAMICS) && psys->clmd && psys->clmd->coll_parms) {
|
||||
/* Hair uses cloth simulation, i.e. get_collision_objects */
|
||||
dag_add_collision_relations(dag, scene, ob, node, psys->clmd->coll_parms->group, ob->lay | scene->lay, eModifierType_Collision, NULL, true, "Hair Collision");
|
||||
}
|
||||
|
||||
dag_add_forcefield_relations(dag, scene, ob, node, part->effector_weights, part->type == PART_HAIR, 0, "Particle Force Field");
|
||||
|
||||
|
|
|
@ -1210,6 +1210,9 @@ void DepsgraphRelationBuilder::build_particles(Scene *scene, Object *ob)
|
|||
if (part->type != PART_HAIR) {
|
||||
add_collision_relations(psys_key, scene, ob, part->collision_group, ob->lay, true, "Particle Collision");
|
||||
}
|
||||
else if ((psys->flag & PSYS_HAIR_DYNAMICS) && psys->clmd && psys->clmd->coll_parms) {
|
||||
add_collision_relations(psys_key, scene, ob, psys->clmd->coll_parms->group, ob->lay | scene->lay, true, "Hair Collision");
|
||||
}
|
||||
|
||||
/* effectors */
|
||||
add_forcefield_relations(psys_key, scene, ob, psys, part->effector_weights, part->type == PART_HAIR, "Particle Field");
|
||||
|
|
Loading…
Reference in New Issue