[Bf-blender-cvs] [7173069] master: Fix T44915 vertex color lost when adding new layer in edit mode.
Antony Riakiotakis
noreply at git.blender.org
Mon Jun 1 19:07:05 CEST 2015
Commit: 7173069cbe76b69b5800cee91a25cee6cb2a9586
Author: Antony Riakiotakis
Date: Mon Jun 1 19:06:46 2015 +0200
Branches: master
https://developer.blender.org/rB7173069cbe76b69b5800cee91a25cee6cb2a9586
Fix T44915 vertex color lost when adding new layer in edit mode.
Was copying new layer colors to old layer colors.
===================================================================
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 b9a9f70..a2054a5 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -429,7 +429,7 @@ int ED_mesh_color_add(Mesh *me, const char *name, const bool active_set)
/* copy data from active vertex color layer */
if (layernum) {
const int layernum_dst = CustomData_get_active_layer(&em->bm->ldata, CD_MLOOPCOL);
- BM_data_layer_copy(em->bm, &em->bm->ldata, CD_MLOOPCOL, layernum, layernum_dst);
+ BM_data_layer_copy(em->bm, &em->bm->ldata, CD_MLOOPCOL, layernum_dst, layernum);
}
if (active_set || layernum == 0) {
CustomData_set_layer_active(&em->bm->ldata, CD_MLOOPCOL, layernum);
More information about the Bf-blender-cvs
mailing list