diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/src/cuda/CuFabric.cpp | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/src/cuda/CuFabric.cpp')
| -rw-r--r-- | NvCloth/src/cuda/CuFabric.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NvCloth/src/cuda/CuFabric.cpp b/NvCloth/src/cuda/CuFabric.cpp index 957f912..6794fa5 100644 --- a/NvCloth/src/cuda/CuFabric.cpp +++ b/NvCloth/src/cuda/CuFabric.cpp @@ -165,7 +165,8 @@ uint32_t cloth::CuFabric::getNumStiffnessValues() const uint32_t cloth::CuFabric::getNumSets() const { - return uint32_t(mSets.size() - 1); + return uint32_t(physx::PxMax(0, (int)mSets.size() - 1)); + } uint32_t cloth::CuFabric::getNumIndices() const |