Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_cast.c
| Context not available. | |||||
| } | } | ||||
| static void sphere_do( | static void sphere_do( | ||||
| CastModifierData *cmd, const ModifierEvalContext *UNUSED(ctx), | CastModifierData *cmd, const ModifierEvalContext *ctx, | ||||
| Object *ob, Mesh *mesh, | Object *ob, Mesh *mesh, | ||||
| float (*vertexCos)[3], int numVerts) | float (*vertexCos)[3], int numVerts) | ||||
| { | { | ||||
| Context not available. | |||||
| if (type == MOD_CAST_TYPE_CYLINDER) | if (type == MOD_CAST_TYPE_CYLINDER) | ||||
| flag &= ~MOD_CAST_Z; | flag &= ~MOD_CAST_Z; | ||||
| ctrl_ob = cmd->object; | ctrl_ob = DEG_get_evaluated_object(ctx->depsgraph, cmd->object); | ||||
| /* spherify's center is {0, 0, 0} (the ob's own center in its local | /* spherify's center is {0, 0, 0} (the ob's own center in its local | ||||
| * space), by default, but if the user defined a control object, | * space), by default, but if the user defined a control object, | ||||
| Context not available. | |||||
| } | } | ||||
| static void cuboid_do( | static void cuboid_do( | ||||
| CastModifierData *cmd, const ModifierEvalContext *UNUSED(ctx), | CastModifierData *cmd, const ModifierEvalContext *ctx, | ||||
| Object *ob, Mesh *mesh, | Object *ob, Mesh *mesh, | ||||
| float (*vertexCos)[3], int numVerts) | float (*vertexCos)[3], int numVerts) | ||||
| { | { | ||||
| Context not available. | |||||
| flag = cmd->flag; | flag = cmd->flag; | ||||
| ctrl_ob = cmd->object; | ctrl_ob = DEG_get_evaluated_object(ctx->depsgraph, cmd->object); | ||||
| /* now we check which options the user wants */ | /* now we check which options the user wants */ | ||||
| Context not available. | |||||