aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/extensions/src/ClothSimpleTetherCooker.cpp
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
committerMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
commitb350eb5f4d44e8448115796144375d79438d74ae (patch)
tree8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/extensions/src/ClothSimpleTetherCooker.cpp
parentAdd visual samples. (diff)
downloadnvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz
nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/extensions/src/ClothSimpleTetherCooker.cpp')
-rw-r--r--NvCloth/extensions/src/ClothSimpleTetherCooker.cpp5
1 files changed, 4 insertions, 1 deletions
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<const PxVec3&>(
particles[*aIt]) - position).magnitudeSquared();
if(minSqrDist > sqrDist)
- minSqrDist = sqrDist, minIndex = *aIt;
+ {
+ minSqrDist = sqrDist;
+ minIndex = *aIt;
+ }
}
mTetherAnchors.pushBack(minIndex);