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:
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
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue