diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-20 05:15:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-20 05:15:12 +0400 |
commit | e3c3a6e2c8a1532872b16308df42442b450667e4 (patch) | |
tree | aeeb1013105d989ca3e18211d46b3bf4af2a6797 /source/blender/editors/mesh | |
parent | f84563d213747c5e22408d480e5697c5b25444f8 (diff) |
fix own bad regression/bug, removing vertex colors crashes [#36227]
Diffstat (limited to 'source/blender/editors/mesh')
-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 b825de58678..4cbb5f303f0 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -138,7 +138,7 @@ static void delete_customdata_layer(Mesh *me, CustomDataLayer *layer) BM_data_layer_free_n(me->edit_btmesh->bm, data, type, n); } else { - CustomData_free_layer(data, type, tot, n); + CustomData_free_layer(data, type, tot, layer_index + n); BKE_mesh_update_customdata_pointers(me, true); } } |