diff options
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); |