Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-25 13:29:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-25 13:29:06 +0400
commit833c03791fd197c3ce9eca46307f6b06ade6e502 (patch)
treef0c6953ab9bafb45eee7600172bc777fddbba55a /source/blender/modifiers/intern/MOD_skin.c
parent92733179aee8d7997c843149dfb640a508ade647 (diff)
Use fill function for setting origindex
Diffstat (limited to 'source/blender/modifiers/intern/MOD_skin.c')
-rw-r--r--source/blender/modifiers/intern/MOD_skin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_skin.c b/source/blender/modifiers/intern/MOD_skin.c
index 2fa57ec68e5..832565cc247 100644
--- a/source/blender/modifiers/intern/MOD_skin.c
+++ b/source/blender/modifiers/intern/MOD_skin.c
@@ -1757,13 +1757,12 @@ static BMesh *build_skin(SkinNode *skin_nodes,
static void skin_set_orig_indices(DerivedMesh *dm)
{
- int *orig, totpoly, i;
+ int *orig, totpoly;
totpoly = dm->getNumPolys(dm);
orig = CustomData_add_layer(&dm->polyData, CD_ORIGINDEX,
CD_CALLOC, NULL, totpoly);
- for (i = 0; i < totpoly; i++)
- orig[i] = ORIGINDEX_NONE;
+ fill_vn_i(orig, totpoly, ORIGINDEX_NONE);
}
/*