Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Lines | static Mesh *arrayModifier_doArray(ArrayModifierData *amd, | ||||
| Object *start_cap_ob = amd->start_cap; | Object *start_cap_ob = amd->start_cap; | ||||
| if (start_cap_ob && start_cap_ob != ctx->object) { | if (start_cap_ob && start_cap_ob != ctx->object) { | ||||
| if (start_cap_ob->type == OB_MESH && ctx->object->type == OB_MESH) { | if (start_cap_ob->type == OB_MESH && ctx->object->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); | ||||
| } | } | ||||
| start_cap_mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object(start_cap_ob, false); | start_cap_mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object(start_cap_ob); | ||||
| if (start_cap_mesh) { | if (start_cap_mesh) { | ||||
| start_cap_nverts = start_cap_mesh->totvert; | start_cap_nverts = start_cap_mesh->totvert; | ||||
| start_cap_nedges = start_cap_mesh->totedge; | start_cap_nedges = start_cap_mesh->totedge; | ||||
| start_cap_nloops = start_cap_mesh->totloop; | start_cap_nloops = start_cap_mesh->totloop; | ||||
| 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 = amd->end_cap; | ||||
| if (end_cap_ob && end_cap_ob != ctx->object) { | if (end_cap_ob && end_cap_ob != ctx->object) { | ||||
| if (end_cap_ob->type == OB_MESH && ctx->object->type == OB_MESH) { | if (end_cap_ob->type == OB_MESH && ctx->object->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); | ||||
| } | } | ||||
| end_cap_mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object(end_cap_ob, false); | end_cap_mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object(end_cap_ob); | ||||
| if (end_cap_mesh) { | if (end_cap_mesh) { | ||||
| end_cap_nverts = end_cap_mesh->totvert; | end_cap_nverts = end_cap_mesh->totvert; | ||||
| end_cap_nedges = end_cap_mesh->totedge; | end_cap_nedges = end_cap_mesh->totedge; | ||||
| end_cap_nloops = end_cap_mesh->totloop; | end_cap_nloops = end_cap_mesh->totloop; | ||||
| end_cap_npolys = end_cap_mesh->totpoly; | end_cap_npolys = end_cap_mesh->totpoly; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 609 Lines • Show Last 20 Lines | |||||