Fix T59785: Curve modifier does not update in realtime in object mode
authorPhilipp Oeser <info@graphics-engineer.com>
Fri, 28 Dec 2018 13:03:01 +0000 (14:03 +0100)
committerPhilipp Oeser <info@graphics-engineer.com>
Fri, 28 Dec 2018 15:26:40 +0000 (16:26 +0100)
Reviewers: brecht

Maniphest Tasks: T59785

Differential Revision: https://developer.blender.org/D4134

source/blender/modifiers/intern/MOD_curve.c

index 42dd8eb..fc33880 100644 (file)
@@ -98,6 +98,7 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte
                /* TODO(sergey): Currently path is evaluated as a part of modifier stack,
                 * might be changed in the future.
                 */
+               DEG_add_object_relation(ctx->node, cmd->object, DEG_OB_COMP_TRANSFORM, "Curve Modifier");
                DEG_add_object_relation(ctx->node, cmd->object, DEG_OB_COMP_GEOMETRY, "Curve Modifier");
                DEG_add_special_eval_flag(ctx->node, &cmd->object->id, DAG_EVAL_NEED_CURVE_PATH);
        }