diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh_utils.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh_utils.h b/source/blender/makesrna/intern/rna_mesh_utils.h index 932a69680af..cfb9f7e8f3d 100644 --- a/source/blender/makesrna/intern/rna_mesh_utils.h +++ b/source/blender/makesrna/intern/rna_mesh_utils.h @@ -101,7 +101,7 @@ if (data) { \ CustomDataLayer *layer; \ int layer_index = CustomData_get_layer_index(data, layer_type); \ - for (layer = data->layers, a = 0; layer_index + a < data->totlayer; layer++, a++) { \ + for (layer = data->layers + layer_index, a = 0; layer_index + a < data->totlayer; layer++, a++) { \ if (value.data == layer) { \ CustomData_set_layer_##active_type(data, layer_type, a); \ \ |