[Bf-blender-cvs] [81a8a01] cloth-improvements: Cleanup: fix some types, and remove unused var

Luca Rood noreply at git.blender.org
Fri Jan 6 00:07:04 CET 2017


Commit: 81a8a015b8ec5f0eacc4fcdd298fb928fe6c85b5
Author: Luca Rood
Date:   Thu Jan 5 00:38:31 2017 -0200
Branches: cloth-improvements
https://developer.blender.org/rB81a8a015b8ec5f0eacc4fcdd298fb928fe6c85b5

Cleanup: fix some types, and remove unused var

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

M	source/blender/blenkernel/intern/cloth.c

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

diff --git a/source/blender/blenkernel/intern/cloth.c b/source/blender/blenkernel/intern/cloth.c
index d25e399..7c5d101 100644
--- a/source/blender/blenkernel/intern/cloth.c
+++ b/source/blender/blenkernel/intern/cloth.c
@@ -1386,7 +1386,7 @@ BLI_INLINE bool add_shear_bend_spring(ClothModifierData *clmd, LinkNodePair *edg
 {
 	Cloth *cloth = clmd->clothObject;
 	ClothSpring *spring;
-	MLoop *tmp_loop;
+	const MLoop *tmp_loop;
 	float shrink_factor;
 	int x, y;
 
@@ -1483,7 +1483,6 @@ static int cloth_build_springs ( ClothModifierData *clmd, DerivedMesh *dm )
 	const MPoly *mpoly = dm->getPolyArray(dm);
 	const MLoop *mloop = dm->getLoopArray(dm);
 	const MLoop *ml;
-	int index2 = 0; // our second vertex index
 	LinkNodePair *edgelist;
 	EdgeSet *edgeset = NULL;
 	LinkNode *search = NULL, *search2 = NULL;
@@ -1616,7 +1615,7 @@ static int cloth_build_springs ( ClothModifierData *clmd, DerivedMesh *dm )
 					}
 					/* Create spring, because this is the second poly to use this edge */
 					else {
-						MLoop *tmp_loop;
+						const MLoop *tmp_loop;
 
 						spring = MEM_callocN(sizeof(ClothSpring), "cloth spring");




More information about the Bf-blender-cvs mailing list