From f2c7eb64ed1c936863784dbcf093c14cb8a00ec8 Mon Sep 17 00:00:00 2001 From: Irlan Date: Fri, 31 May 2019 12:29:18 -0300 Subject: [PATCH] Update sparse_mat33_view.h --- include/bounce/cloth/sparse_mat33_view.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/bounce/cloth/sparse_mat33_view.h b/include/bounce/cloth/sparse_mat33_view.h index 9abb275..414808c 100644 --- a/include/bounce/cloth/sparse_mat33_view.h +++ b/include/bounce/cloth/sparse_mat33_view.h @@ -85,12 +85,7 @@ inline const b3Mat33& b3SparseMat33View::operator()(u32 i, u32 j) const { B3_ASSERT(i < rowCount); B3_ASSERT(j < rowCount); - - if (i > j) - { - b3Swap(i, j); - } - + b3RowValueArray* vs = rows + i; for (u32 c = 0; c < vs->count; ++c)