From b350eb5f4d44e8448115796144375d79438d74ae Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Fri, 28 Apr 2017 14:19:07 +0200 Subject: NvCloth 1.1.0 Release. (22041545) --- NvCloth/extensions/src/ClothSimpleTetherCooker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'NvCloth/extensions/src/ClothSimpleTetherCooker.cpp') diff --git a/NvCloth/extensions/src/ClothSimpleTetherCooker.cpp b/NvCloth/extensions/src/ClothSimpleTetherCooker.cpp index 73884d9..daad774 100644 --- a/NvCloth/extensions/src/ClothSimpleTetherCooker.cpp +++ b/NvCloth/extensions/src/ClothSimpleTetherCooker.cpp @@ -105,7 +105,10 @@ void ClothSimpleTetherCooker::createTetherData(const ClothMeshDesc &desc) float sqrDist = (reinterpret_cast( particles[*aIt]) - position).magnitudeSquared(); if(minSqrDist > sqrDist) - minSqrDist = sqrDist, minIndex = *aIt; + { + minSqrDist = sqrDist; + minIndex = *aIt; + } } mTetherAnchors.pushBack(minIndex); -- cgit v1.2.3