[Bf-blender-cvs] [408d2624062] soc-2017-vertex_paint: new color layor set to default rather tha copying previos one

Darshan Kadu noreply at git.blender.org
Wed Aug 2 12:26:45 CEST 2017


Commit: 408d26240623b44da0d8532389dc23b07de7e37e
Author: Darshan Kadu
Date:   Wed Aug 2 15:55:32 2017 +0530
Branches: soc-2017-vertex_paint
https://developer.blender.org/rB408d26240623b44da0d8532389dc23b07de7e37e

new color layor set to default rather tha copying previos one

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

M	source/blender/editors/mesh/mesh_data.c

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

diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c
index 772bb1bd308..49ee6585296 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -442,8 +442,8 @@ int ED_mesh_color_add(Mesh *me, const char *name, const bool active_set)
 		}
 
 		if (me->mloopcol) {
-			CustomData_add_layer_named(&me->ldata, CD_MLOOPCOL, CD_DUPLICATE, me->mloopcol, me->totloop, name);
-			CustomData_add_layer_named(&me->fdata, CD_MCOL, CD_DUPLICATE, me->mcol, me->totface, name);
+			CustomData_add_layer_named(&me->ldata, CD_MLOOPCOL, CD_DEFAULT, me->mloopcol, me->totloop, name);
+			CustomData_add_layer_named(&me->fdata, CD_MCOL, CD_DEFAULT, me->mcol, me->totface, name);
 		}
 		else {
 			CustomData_add_layer_named(&me->ldata, CD_MLOOPCOL, CD_DEFAULT, NULL, me->totloop, name);




More information about the Bf-blender-cvs mailing list