[Bf-blender-cvs] [6ddb1fa] master: Fix T38962: Boolean modifier crashes when only right operand has UV layer

Sergey Sharybin noreply at git.blender.org
Wed Mar 5 09:29:34 CET 2014


Commit: 6ddb1faca976744c2c714c242d781cd42a226ef0
Author: Sergey Sharybin
Date:   Wed Mar 5 14:29:02 2014 +0600
https://developer.blender.org/rB6ddb1faca976744c2c714c242d781cd42a226ef0

Fix T38962: Boolean modifier crashes when only right operand has UV layer

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

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

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

diff --git a/source/blender/modifiers/intern/MOD_boolean_util.c b/source/blender/modifiers/intern/MOD_boolean_util.c
index 50ea8f1..e0f8a18 100644
--- a/source/blender/modifiers/intern/MOD_boolean_util.c
+++ b/source/blender/modifiers/intern/MOD_boolean_util.c
@@ -351,6 +351,11 @@ static void exporter_InitGeomArrays(ExportMeshData *export_data,
 	allocate_custom_layers(&dm->loopData, CD_MLOOPUV, num_loops,
 	                       CustomData_number_of_layers(&dm_left->loopData, CD_MLOOPUV));
 
+	allocate_custom_layers(&dm->loopData, CD_MLOOPCOL, num_loops,
+	                       CustomData_number_of_layers(&dm_right->loopData, CD_MLOOPCOL));
+	allocate_custom_layers(&dm->loopData, CD_MLOOPUV, num_loops,
+	                       CustomData_number_of_layers(&dm_right->loopData, CD_MLOOPUV));
+
 	/* Merge custom data layers from operands.
 	 *
 	 * Will only create custom data layers for all the layers which appears in




More information about the Bf-blender-cvs mailing list