summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Bennice <mbennice@google.com>2022-08-11 11:55:50 -0700
committerMatt Bennice <mbennice@google.com>2022-08-11 11:55:50 -0700
commit555c0c6cd925a93e9be6812a2e235a4df6d2b0c4 (patch)
treead6118924cb087d2c96d3f501935b48d2c18b972
parent82b7fa6df0ce50589cfa872d4971c14d799e8c7b (diff)
downloadbullet3-555c0c6cd925a93e9be6812a2e235a4df6d2b0c4.tar.gz
Remove the duplicated code outside of else
-rw-r--r--src/BulletSoftBody/btSoftBody.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/BulletSoftBody/btSoftBody.cpp b/src/BulletSoftBody/btSoftBody.cpp
index 9c438088a..64005cc2c 100644
--- a/src/BulletSoftBody/btSoftBody.cpp
+++ b/src/BulletSoftBody/btSoftBody.cpp
@@ -2827,8 +2827,6 @@ static void getBarycentric(const btVector3& p, const btVector3& a, const btVecto
bary.setY((d11 * d20 - d01 * d21) / denom);
bary.setZ((d00 * d21 - d01 * d20) / denom);
}
- bary.setY((d11 * d20 - d01 * d21) / denom);
- bary.setZ((d00 * d21 - d01 * d20) / denom);
bary.setX(btScalar(1) - bary.getY() - bary.getZ());
}