Fix T60417: Hair not instantly updating when editing curve guide

Reviewers: sergey, brecht

Maniphest Tasks: T60417

Differential Revision: https://developer.blender.org/D4193
This commit is contained in:
Philipp Oeser 2019-01-11 13:13:55 +01:00
parent 657806691b
commit 32c2e941e6
Notes: blender-bot 2023-02-14 06:49:54 +01:00
Referenced by issue #60417, Hair not instantly updating when editing guide curve
2 changed files with 4 additions and 2 deletions

View File

@ -394,7 +394,8 @@ void DepsgraphRelationBuilder::add_particle_forcefield_relations(
ComponentKey eff_key(&relation->ob->id, DEG_NODE_TYPE_TRANSFORM);
add_relation(eff_key, key, name);
if (ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS)) {
if (ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) ||
relation->pd->forcefield == PFIELD_GUIDE) {
ComponentKey mod_key(&relation->ob->id, DEG_NODE_TYPE_GEOMETRY);
add_relation(mod_key, key, name);
}

View File

@ -155,7 +155,8 @@ void DEG_add_forcefield_relations(DepsNodeHandle *handle,
handle, relation->ob, DEG_OB_COMP_TRANSFORM, name);
if (relation->psys ||
ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS))
ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) ||
relation->pd->forcefield == PFIELD_GUIDE)
{
/* TODO(sergey): Consider going more granular with more dedicated
* particle system operation. */