Page MenuHome

Fix T60417: Hair not instantly updating when editing curve guide
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Jan 11 2019, 1:19 PM.

Diff Detail

Repository
rB Blender

Event Timeline

note 1: not exactly sure if pointcache_relation is really needed?
note 2: editing the Curve guide was already working for moving particles (just not hair), so apparently there is a relation somewhere already.

to sum it up: not sure if this is done correctly, but it makes immediate updates work for hair... :)

There is missing space prior to {.

Particles might work due to different evaluation runtime or so. I do not see any relations for PFIELD_GUIDE , so that relation seems indeed to be needed.

As for ptcache relation,. check in 2.79 whether point cache was reset when moving the guide. That'd be the most reliable way, just mimmic what was happening. There are some unconsistencies in particles code, so i can't give reliable answer out of top of my head.

  • missing space
  • removed ptcache relation (wasnt done in 2.79 old depsgraph either)

update to current master

Brecht Van Lommel (brecht) requested changes to this revision.Jan 23 2019, 2:41 PM

Same code needs to be added in DEG_add_forcefield_relations, but otherwise looks good.

This revision now requires changes to proceed.Jan 23 2019, 2:41 PM

Brecht is more familiar with the specifics of forcefields. To me seems logical, just indeed should also be done in DEG_add_forcefield_relations.

This revision is now accepted and ready to land.Jan 23 2019, 3:55 PM
This revision was automatically updated to reflect the committed changes.