From 555c0c6cd925a93e9be6812a2e235a4df6d2b0c4 Mon Sep 17 00:00:00 2001 From: Matt Bennice Date: Thu, 11 Aug 2022 11:55:50 -0700 Subject: [PATCH] Remove the duplicated code outside of else --- src/BulletSoftBody/btSoftBody.cpp | 2 -- 1 file changed, 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()); }