Fix (unreported) Crash in Array modifier.

Typo (copy/paste mistake) in rB923b28aab85768e2b.
This commit is contained in:
Bastien Montagne 2022-03-22 11:25:54 +01:00
parent ceaa787e42
commit 2ba72d847b
Notes: blender-bot 2023-02-14 06:45:14 +01:00
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ static Mesh *arrayModifier_doArray(ArrayModifierData *amd,
}
Object *end_cap_ob = amd->end_cap;
if (end_cap_ob && end_cap_ob != ctx->object) {
if (start_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(
end_cap_ob, ctx->object, &vgroup_end_cap_remap_len);
}