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); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs