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 committed by Philipp Oeser
parent c9290d23ca
commit 46585a4900
Notes: blender-bot 2023-02-14 09:33:11 +01:00
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}