Fix T74224: Add missing depsgraph relations for boid particles
Reviewers: brecht Differential Revision: https://developer.blender.org/D7302
This commit is contained in:
@@ -1164,7 +1164,7 @@ void DepsgraphNodeBuilder::build_particle_systems(Object *object, bool is_object
|
|||||||
/* Particle system evaluation. */
|
/* Particle system evaluation. */
|
||||||
add_operation_node(psys_comp, OperationCode::PARTICLE_SYSTEM_EVAL, nullptr, psys->name);
|
add_operation_node(psys_comp, OperationCode::PARTICLE_SYSTEM_EVAL, nullptr, psys->name);
|
||||||
/* Keyed particle targets. */
|
/* Keyed particle targets. */
|
||||||
if (part->phystype == PART_PHYS_KEYED) {
|
if (ELEM(part->phystype, PART_PHYS_KEYED, PART_PHYS_BOIDS)) {
|
||||||
LISTBASE_FOREACH (ParticleTarget *, particle_target, &psys->targets) {
|
LISTBASE_FOREACH (ParticleTarget *, particle_target, &psys->targets) {
|
||||||
if (particle_target->ob == nullptr || particle_target->ob == object) {
|
if (particle_target->ob == nullptr || particle_target->ob == object) {
|
||||||
continue;
|
continue;
|
||||||
|
@@ -1789,7 +1789,7 @@ void DepsgraphRelationBuilder::build_particle_systems(Object *object)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Keyed particle targets. */
|
/* Keyed particle targets. */
|
||||||
if (part->phystype == PART_PHYS_KEYED) {
|
if (ELEM(part->phystype, PART_PHYS_KEYED, PART_PHYS_BOIDS)) {
|
||||||
LISTBASE_FOREACH (ParticleTarget *, particle_target, &psys->targets) {
|
LISTBASE_FOREACH (ParticleTarget *, particle_target, &psys->targets) {
|
||||||
if (particle_target->ob == nullptr || particle_target->ob == object) {
|
if (particle_target->ob == nullptr || particle_target->ob == object) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user