diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-06-01 20:06:46 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-06-01 20:06:46 +0300 |
commit | 7173069cbe76b69b5800cee91a25cee6cb2a9586 (patch) | |
tree | 3ad07f907756b8dc68c50ad16a84f2bb753fce01 /source/blender/editors/mesh/mesh_data.c | |
parent | 893677a76a2cb326aa55392629c58f9069b41597 (diff) |
Fix T44915 vertex color lost when adding new layer in edit mode.
Was copying new layer colors to old layer colors.
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.c')
-rw-r--r-- | source/blender/editors/mesh/mesh_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index b9a9f708af7..a2054a5f43c 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); |