Depsgraph: Fix missinf relation for particle instance modifier

Was causing lack of animation update when particle system had simulation,
This commit is contained in:
Sergey Sharybin 2018-04-18 13:54:02 +02:00
parent 3811998177
commit f28aec17e9
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #55478, Default cube reappears after having been deleted when editing vert count of new mesh circle
Referenced by issue #54717, nVidia GPU not detected
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte
ParticleInstanceModifierData *pimd = (ParticleInstanceModifierData *) md;
if (pimd->ob != NULL) {
DEG_add_object_relation(ctx->node, pimd->ob, DEG_OB_COMP_TRANSFORM, "Particle Instance Modifier");
DEG_add_object_relation(ctx->node, pimd->ob, DEG_OB_COMP_GEOMETRY, "Particle Instance Modifier");
}
}