diff options
| author | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
| commit | b350eb5f4d44e8448115796144375d79438d74ae (patch) | |
| tree | 8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/extensions/src/ClothSimpleTetherCooker.cpp | |
| parent | Add visual samples. (diff) | |
| download | nvcloth-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.cpp | 5 |
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); |