Fix T66919: Force field does not affect particles
Reviewers: brecht Reviewed By: brecht Maniphest Tasks: T66919 Differential Revision: https://developer.blender.org/D5275
This commit is contained in:
parent
c722c5204f
commit
4ddc7e8d1b
Notes:
blender-bot
2023-02-14 06:00:47 +01:00
Referenced by issue #66919, Force field (wind noise) does not affect dinamically the hair particle effects
|
@ -379,6 +379,14 @@ void DepsgraphRelationBuilder::add_particle_forcefield_relations(const Operation
|
|||
{
|
||||
ListBase *relations = build_effector_relations(graph_, eff->group);
|
||||
|
||||
/* Make sure physics effects like wind are properly re-evaluating the modifier stack. */
|
||||
if (!BLI_listbase_is_empty(relations)) {
|
||||
TimeSourceKey time_src_key;
|
||||
ComponentKey geometry_key(&object->id, NodeType::GEOMETRY);
|
||||
add_relation(
|
||||
time_src_key, geometry_key, "Effector Time -> Particle", RELATION_CHECK_BEFORE_ADD);
|
||||
}
|
||||
|
||||
LISTBASE_FOREACH (EffectorRelation *, relation, relations) {
|
||||
if (relation->ob != object) {
|
||||
/* Relation to forcefield object, optionally including geometry. */
|
||||
|
|
Loading…
Reference in New Issue