From 6f7d458679942f04e56897bcbe2c8f798764b14d Mon Sep 17 00:00:00 2001 From: erwin coumans Date: Tue, 16 Mar 2021 18:17:23 -0700 Subject: [PATCH] add missing line in previous commit --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 684fd555b..0cb66f157 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -2730,10 +2730,13 @@ void PhysicsServerCommandProcessor::createEmptyDynamicsWorld(int flags) #endif } + + if ((0 == m_data->m_dynamicsWorld) && (0 == (flags & RESET_USE_DISCRETE_DYNAMICS_WORLD))) { #ifndef SKIP_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD + m_data->m_solver = new btMultiBodyConstraintSolver; m_data->m_dynamicsWorld = new btSoftMultiBodyDynamicsWorld(m_data->m_dispatcher, m_data->m_broadphase, m_data->m_solver, m_data->m_collisionConfiguration); #else #ifdef USE_DISCRETE_DYNAMICS_WORLD