[Bf-blender-cvs] [12c66854bd0] master: Pass correct array size to BKE_object_material_remap_calc

Jacob Lewallen noreply at git.blender.org
Wed Oct 6 16:26:20 CEST 2021


Commit: 12c66854bd02c27595d41a83301638f4e46fa29a
Author: Jacob Lewallen
Date:   Wed Oct 6 10:23:10 2021 -0400
Branches: master
https://developer.blender.org/rB12c66854bd02c27595d41a83301638f4e46fa29a

Pass correct array size to BKE_object_material_remap_calc

This was patch D12460 from jlewallen and fixes T91339 and T90818.

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

M	source/blender/modifiers/intern/MOD_boolean.cc

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

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



More information about the Bf-blender-cvs mailing list