diff options
author | Jacob Lewallen <jlewallen> | 2021-10-06 17:23:10 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-11-02 14:57:51 +0300 |
commit | 7d2b6a213fd7014f5a4b8616693a416a321d67b6 (patch) | |
tree | e5f952b8bca3023ac56d4bca49f6be2270f8e3ac | |
parent | 852d10bd3d88e593e8537168c9a057dc371be0ff (diff) |
Pass correct array size to BKE_object_material_remap_calc
This was patch D12460 from jlewallen and fixes T91339 and T90818.
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.cc b/source/blender/modifiers/intern/MOD_boolean.cc index f1985cf7bd1..846be9bc1df 100644 --- a/source/blender/modifiers/intern/MOD_boolean.cc +++ b/source/blender/modifiers/intern/MOD_boolean.cc @@ -387,7 +387,7 @@ static void BMD_mesh_intersection(BMesh *bm, * Caller owns the returned array. */ static Array<short> get_material_remap(Object *dest_ob, Object *src_ob) { - int n = dest_ob->totcol; + int n = src_ob->totcol; if (n <= 0) { n = 1; } |