diff options
| author | sschirm <[email protected]> | 2017-02-27 16:40:12 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2017-03-01 18:04:26 +0100 |
| commit | 7840347c32755e94a807f978f1cbb558717ac8cf (patch) | |
| tree | 295cd3ca93a45f8fcc43cf3cbf3887c0e0c5526b /PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp | |
| parent | Pre-release comments marking end of beta. (diff) | |
| download | physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.tar.xz physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.zip | |
PhysX 3.4, APEX 1.4 final release @21757769v3.4.0-rc-2
Diffstat (limited to 'PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp')
| -rw-r--r-- | PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp b/PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp index c71bb3c2..c3606d4b 100644 --- a/PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp +++ b/PhysX_3.4/Source/LowLevelDynamics/src/DyConstraintSetup.cpp @@ -397,8 +397,14 @@ PxSolverConstraintPrepDesc& prepDesc, PxConstraintAllocator& allocator, PxReal dt, PxReal invdt) { - if (prepDesc .numRows== 0) + if (prepDesc.numRows == 0) + { + prepDesc.desc->constraint = NULL; + prepDesc.desc->writeBack = NULL; + prepDesc.desc->constraintLengthOver16 = 0; + prepDesc.desc->writeBackLengthOver4 = 0; return 0; + } PxSolverConstraintDesc& desc = *prepDesc.desc; |