Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_curve.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphContext *ctx) | ||||
| CurveModifierData *cmd = (CurveModifierData *)md; | CurveModifierData *cmd = (CurveModifierData *)md; | ||||
| if (cmd->object != NULL) { | if (cmd->object != NULL) { | ||||
| /* TODO(sergey): Need to do the same eval_flags trick for path | /* TODO(sergey): Need to do the same eval_flags trick for path | ||||
| * as happening in legacy depsgraph callback. | * as happening in legacy depsgraph callback. | ||||
| */ | */ | ||||
| /* TODO(sergey): Currently path is evaluated as a part of modifier stack, | /* TODO(sergey): Currently path is evaluated as a part of modifier stack, | ||||
| * might be changed in the future. | * 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_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); | DEG_add_special_eval_flag(ctx->node, &cmd->object->id, DAG_EVAL_NEED_CURVE_PATH); | ||||
| } | } | ||||
| DEG_add_object_relation(ctx->node, ctx->object, DEG_OB_COMP_TRANSFORM, "Curve Modifier"); | DEG_add_object_relation(ctx->node, ctx->object, DEG_OB_COMP_TRANSFORM, "Curve Modifier"); | ||||
| } | } | ||||
| static void deformVerts( | static void deformVerts( | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||