From 46585a49003c53f1d3de16563c3476868fd9dac9 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 22 Mar 2022 11:25:54 +0100 Subject: Fix (unreported) Crash in Array modifier. Typo (copy/paste mistake) in rB923b28aab85768e2b. --- source/blender/modifiers/intern/MOD_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c index df02cc33507..abde2a48561 100644 --- a/source/blender/modifiers/intern/MOD_array.c +++ b/source/blender/modifiers/intern/MOD_array.c @@ -427,7 +427,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); } -- cgit v1.2.3