Commit: 2ba72d847b241c793988a389521cc37c8e070cb7
Author: Bastien Montagne
Date:   Tue Mar 22 11:25:54 2022 +0100
Branches: master
https://developer.blender.org/rB2ba72d847b241c793988a389521cc37c8e070cb7

Fix (unreported) Crash in Array modifier.

Typo (copy/paste mistake) in rB923b28aab85768e2b.

===================================================================

M       source/blender/modifiers/intern/MOD_array.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_array.c 
b/source/blender/modifiers/intern/MOD_array.c
index 4b2dfd7d493..b237f952287 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -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);
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to