diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-25 17:34:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-25 17:34:01 +0300 |
commit | 331e97bcf3778209f41e819354f873abf3886740 (patch) | |
tree | 24757888da3dae96ccdacfdae7ed62c0b3343aec /source | |
parent | 13b6867d1fd21721bfd1a46501815faa6f6fa375 (diff) |
Depsgraph: Fix missing relations in array modifier
Found by Dr. Sybren while working on modifiers port.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/modifiers/intern/MOD_array.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c index 47c5e9da864..5119f9e9d8e 100644 --- a/source/blender/modifiers/intern/MOD_array.c +++ b/source/blender/modifiers/intern/MOD_array.c @@ -139,9 +139,11 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte ArrayModifierData *amd = (ArrayModifierData *)md; if (amd->start_cap != NULL) { DEG_add_object_relation(ctx->node, amd->start_cap, DEG_OB_COMP_TRANSFORM, "Array Modifier Start Cap"); + DEG_add_object_relation(ctx->node, amd->start_cap, DEG_OB_COMP_GEOMETRY, "Array Modifier Start Cap"); } if (amd->end_cap != NULL) { DEG_add_object_relation(ctx->node, amd->end_cap, DEG_OB_COMP_TRANSFORM, "Array Modifier End Cap"); + DEG_add_object_relation(ctx->node, amd->end_cap, DEG_OB_COMP_GEOMETRY, "Array Modifier End Cap"); } if (amd->curve_ob) { struct Depsgraph *depsgraph = DEG_get_graph_from_handle(ctx->node); |