Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Context not available. | |||||
| count = amd->count; | count = amd->count; | ||||
| Object *start_cap_ob = amd->start_cap; | Object *start_cap_ob = DEG_get_evaluated_object(ctx->depsgraph, amd->start_cap); | ||||
| if (start_cap_ob && start_cap_ob != ctx->object && start_cap_ob->type == OB_MESH) { | if (start_cap_ob && start_cap_ob != ctx->object && start_cap_ob->type == OB_MESH) { | ||||
| vgroup_start_cap_remap = BKE_object_defgroup_index_map_create( | vgroup_start_cap_remap = BKE_object_defgroup_index_map_create( | ||||
| start_cap_ob, ctx->object, &vgroup_start_cap_remap_len); | start_cap_ob, ctx->object, &vgroup_start_cap_remap_len); | ||||
| Context not available. | |||||
| start_cap_npolys = start_cap_mesh->totpoly; | start_cap_npolys = start_cap_mesh->totpoly; | ||||
| } | } | ||||
| } | } | ||||
| Object *end_cap_ob = amd->end_cap; | Object *end_cap_ob = DEG_get_evaluated_object(ctx->depsgraph, amd->end_cap); | ||||
| if (end_cap_ob && end_cap_ob != ctx->object && end_cap_ob->type == OB_MESH) { | if (end_cap_ob && end_cap_ob != ctx->object && end_cap_ob->type == OB_MESH) { | ||||
| vgroup_end_cap_remap = BKE_object_defgroup_index_map_create( | vgroup_end_cap_remap = BKE_object_defgroup_index_map_create( | ||||
| end_cap_ob, ctx->object, &vgroup_end_cap_remap_len); | end_cap_ob, ctx->object, &vgroup_end_cap_remap_len); | ||||
| Context not available. | |||||
| else | else | ||||
| unit_m4(obinv); | unit_m4(obinv); | ||||
| mul_m4_series(result_mat, offset, obinv, amd->offset_ob->obmat); | mul_m4_series(result_mat, offset, obinv, DEG_get_evaluated_object(ctx->depsgraph, amd->offset_ob)->obmat); | ||||
| copy_m4_m4(offset, result_mat); | copy_m4_m4(offset, result_mat); | ||||
| } | } | ||||
| Context not available. | |||||
| offset_has_scale = !is_one_v3(scale); | offset_has_scale = !is_one_v3(scale); | ||||
| if (amd->fit_type == MOD_ARR_FITCURVE && amd->curve_ob != NULL) { | if (amd->fit_type == MOD_ARR_FITCURVE && amd->curve_ob != NULL) { | ||||
| Object *curve_ob = amd->curve_ob; | Object *curve_ob = DEG_get_evaluated_object(ctx->depsgraph, amd->curve_ob); | ||||
| Curve *cu = curve_ob->data; | Curve *cu = curve_ob->data; | ||||
| if (cu) { | if (cu) { | ||||
| CurveCache *curve_cache = curve_ob->runtime.curve_cache; | CurveCache *curve_cache = curve_ob->runtime.curve_cache; | ||||
| Context not available. | |||||