From 654d5c2b61e191ae777e401249534592f4418ce8 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Thu, 24 May 2018 18:14:46 -0300 Subject: [PATCH] consistency --- src/bounce/dynamics/cloth/cloth.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bounce/dynamics/cloth/cloth.cpp b/src/bounce/dynamics/cloth/cloth.cpp index d6a2e59..264b74b 100644 --- a/src/bounce/dynamics/cloth/cloth.cpp +++ b/src/bounce/dynamics/cloth/cloth.cpp @@ -630,9 +630,7 @@ void b3Cloth::Apply() const void b3Cloth::Draw() const { - const b3ClothMesh* m = m_mesh; - - for (u32 i = 0; i < m->vertexCount; ++i) + for (u32 i = 0; i < m_particleCount; ++i) { b3Particle* p = m_particles + i; @@ -671,6 +669,8 @@ void b3Cloth::Draw() const } } + const b3ClothMesh* m = m_mesh; + for (u32 i = 0; i < m->sewingLineCount; ++i) { b3ClothMeshSewingLine* s = m->sewingLines + i;