diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-03-25 18:32:01 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-03-25 18:32:01 +0300 |
commit | 84240ebb3ebde58f6bfba256e49d37697fb6bc9f (patch) | |
tree | 71b9b267d795fb4695afa977075da6dc18bb0c5d /source/blender | |
parent | 9cd970734b5f9f9c2b81e67b0da2a3acd07e1c9a (diff) |
Fix T62776: Face maps are initialized incorrectly
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4586
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index cdb905f9e35..1b1cc1fa30f 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1252,9 +1252,8 @@ static void layerSwap_flnor(void *data, const int *corner_indices) static void layerDefault_fmap(void *data, int count) { int *fmap_num = (int *)data; - int i; - for (i = 0; i < count; i++) { - *fmap_num = -1; + for (int i = 0; i < count; i++) { + fmap_num[i] = -1; } } |