[Bf-blender-cvs] [833c037] master: Use fill function for setting origindex

Campbell Barton noreply at git.blender.org
Wed Jun 25 11:35:14 CEST 2014


Commit: 833c03791fd197c3ce9eca46307f6b06ade6e502
Author: Campbell Barton
Date:   Wed Jun 25 19:29:06 2014 +1000
https://developer.blender.org/rB833c03791fd197c3ce9eca46307f6b06ade6e502

Use fill function for setting origindex

===================================================================

M	source/blender/modifiers/intern/MOD_skin.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_skin.c b/source/blender/modifiers/intern/MOD_skin.c
index 2fa57ec..832565c 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);
 }
 
 /*




More information about the Bf-blender-cvs mailing list