From fe6c2a3b0ebd10a8fc205338f394564e3f002723 Mon Sep 17 00:00:00 2001 From: Irlan Date: Sun, 23 Jun 2019 15:28:44 -0300 Subject: [PATCH] Bugfix --- src/bounce/cloth/cloth_contact_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bounce/cloth/cloth_contact_manager.cpp b/src/bounce/cloth/cloth_contact_manager.cpp index 86731c9..77c09bd 100644 --- a/src/bounce/cloth/cloth_contact_manager.cpp +++ b/src/bounce/cloth/cloth_contact_manager.cpp @@ -283,7 +283,7 @@ void b3ClothContactManager::UpdateBodyContacts() while (c) { bool isntDynamic1 = c->m_p1->m_type != e_dynamicParticle; - bool isntDynamic2 = c->m_s2->GetType() != e_dynamicBody; + bool isntDynamic2 = c->m_s2->GetBody()->GetType() != e_dynamicBody; // Cease the contact if entities must not collide with each other. if (isntDynamic1 && isntDynamic2)