Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Context not available. | |||||
| /* need to avoid infinite recursion here */ | /* need to avoid infinite recursion here */ | ||||
| if (amd->start_cap && amd->start_cap != ob && amd->start_cap->type == OB_MESH) | if (amd->start_cap && amd->start_cap != ob && amd->start_cap->type == OB_MESH) | ||||
| start_cap = get_dm_for_modifier(amd->start_cap, flag); | start_cap = get_dm_for_modifier(scene, amd->start_cap, flag); | ||||
| if (amd->end_cap && amd->end_cap != ob && amd->end_cap->type == OB_MESH) | if (amd->end_cap && amd->end_cap != ob && amd->end_cap->type == OB_MESH) | ||||
| end_cap = get_dm_for_modifier(amd->end_cap, flag); | end_cap = get_dm_for_modifier(scene, amd->end_cap, flag); | ||||
| unit_m4(offset); | unit_m4(offset); | ||||
| Context not available. | |||||
| invert_m4_m4(startoffset, offset); | invert_m4_m4(startoffset, offset); | ||||
| bm_merge_dm_transform(bm, start_cap, startoffset, amd, | bm_merge_dm_transform(bm, start_cap, startoffset, amd, | ||||
| &first_dupe_op, first_dupe_op.slots_in, "geom", &weld_op); | &first_dupe_op, first_dupe_op.slots_in, "geom", &weld_op); | ||||
| start_cap->release(start_cap); | |||||
| } | } | ||||
| if (end_cap) { | if (end_cap) { | ||||
| Context not available. | |||||
| bm_merge_dm_transform(bm, end_cap, endoffset, amd, | bm_merge_dm_transform(bm, end_cap, endoffset, amd, | ||||
| &dupe_op, (count == 1) ? dupe_op.slots_in : dupe_op.slots_out, | &dupe_op, (count == 1) ? dupe_op.slots_in : dupe_op.slots_out, | ||||
| (count == 1) ? "geom" : "geom.out", &weld_op); | (count == 1) ? "geom" : "geom.out", &weld_op); | ||||
| end_cap->release(end_cap); | |||||
| } | } | ||||
| } | } | ||||
| /* done capping */ | /* done capping */ | ||||
| Context not available. | |||||