Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_util.c
| Context not available. | |||||
| void MOD_init_texture(MappingInfoModifierData *dmd, const ModifierEvalContext *ctx) | void MOD_init_texture(MappingInfoModifierData *dmd, const ModifierEvalContext *ctx) | ||||
| { | { | ||||
| Tex *tex = dmd->texture; | Tex *tex = (Tex *)DEG_get_evaluated_id(ctx->depsgraph, &dmd->texture->id); | ||||
| if (tex == NULL) { | if (tex == NULL) { | ||||
| return; | return; | ||||
| Context not available. | |||||
| /** \param cos: may be NULL, in which case we use directly mesh vertices' coordinates. */ | /** \param cos: may be NULL, in which case we use directly mesh vertices' coordinates. */ | ||||
| void MOD_get_texture_coords( | void MOD_get_texture_coords( | ||||
| MappingInfoModifierData *dmd, | MappingInfoModifierData *dmd, | ||||
| const ModifierEvalContext *UNUSED(ctx), | const ModifierEvalContext *ctx, | ||||
| Object *ob, | Object *ob, | ||||
| Mesh *mesh, | Mesh *mesh, | ||||
| float (*cos)[3], | float (*cos)[3], | ||||
| Context not available. | |||||
| if (texmapping == MOD_DISP_MAP_OBJECT) { | if (texmapping == MOD_DISP_MAP_OBJECT) { | ||||
| if (dmd->map_object != NULL) { | if (dmd->map_object != NULL) { | ||||
| Object *map_object = dmd->map_object; | Object *map_object = DEG_get_evaluated_object(ctx->depsgraph, dmd->map_object); | ||||
| invert_m4_m4(mapob_imat, map_object->obmat); | invert_m4_m4(mapob_imat, map_object->obmat); | ||||
| } | } | ||||
| else {/* if there is no map object, default to local */ | else {/* if there is no map object, default to local */ | ||||
| Context not available. | |||||