Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Lewallen <jlewallen>2021-10-06 17:23:10 +0300
committerHoward Trickey <howard.trickey@gmail.com>2021-10-06 17:26:15 +0300
commit12c66854bd02c27595d41a83301638f4e46fa29a (patch)
treef632bfc7e8ce333175e3ccef183aee3d79279f20 /source/blender/modifiers/intern/MOD_boolean.cc
parentc6275da852eab77e2cea1ae601a43a2dbaad6c27 (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/intern/MOD_boolean.cc')
-rw-r--r--source/blender/modifiers/intern/MOD_boolean.cc2
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;
}