Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_simpledeform.c
| Context not available. | |||||
| /* simple deform modifier */ | /* simple deform modifier */ | ||||
| static void SimpleDeformModifier_do( | static void SimpleDeformModifier_do( | ||||
| SimpleDeformModifierData *smd, const ModifierEvalContext *UNUSED(ctx), | SimpleDeformModifierData *smd, const ModifierEvalContext *ctx, | ||||
| struct Object *ob, struct Mesh *mesh, | struct Object *ob, struct Mesh *mesh, | ||||
| float (*vertexCos)[3], int numVerts) | float (*vertexCos)[3], int numVerts) | ||||
| { | { | ||||
| Context not available. | |||||
| /* Calculate matrixs do convert between coordinate spaces */ | /* Calculate matrixs do convert between coordinate spaces */ | ||||
| if (smd->origin != NULL) { | if (smd->origin != NULL) { | ||||
| transf = &tmp_transf; | transf = &tmp_transf; | ||||
| BLI_SPACE_TRANSFORM_SETUP(transf, ob, smd->origin); | BLI_SPACE_TRANSFORM_SETUP(transf, ob, DEG_get_evaluated_object(ctx->depsgraph, smd->origin)); | ||||
| } | } | ||||
| /* Update limits if needed */ | /* Update limits if needed */ | ||||
| Context not available. | |||||