diff options
author | Jacob Lewallen <jlewallen> | 2021-10-06 17:23:10 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2021-10-06 17:26:15 +0300 |
commit | 12c66854bd02c27595d41a83301638f4e46fa29a (patch) | |
tree | f632bfc7e8ce333175e3ccef183aee3d79279f20 /source/blender/modifiers | |
parent | c6275da852eab77e2cea1ae601a43a2dbaad6c27 (diff) |
Pass correct array size to BKE_object_material_remap_calc
This was patch D12460 from jlewallen and fixes T91339 and T90818.
Diffstat (limited to 'source/blender/modifiers')
-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 c5d6902e1bc..95167b5c82e 100644 --- a/source/blender/modifiers/intern/MOD_boolean.cc +++ b/source/blender/modifiers/intern/MOD_boolean.cc @@ -386,7 +386,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; } |