apply forgotten patch in a closed issue

http://code.google.com/p/bullet/issues/detail?id=573

Thanks to Andres Traks for the reminder!
This commit is contained in:
erwincoumans
2012-06-29 22:36:38 +00:00
parent f9908667eb
commit 78e1058b68
2 changed files with 5 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ m_solverIslandCallback ( NULL )
{
void* mem = btAlignedAlloc(sizeof(InplaceSolverIslandCallback),16);
m_solverIslandCallback = new (mem) InplaceSolverIslandCallback (constraintSolver, m_stackAlloc, dispatcher);
m_solverIslandCallback = new (mem) InplaceSolverIslandCallback (m_constraintSolver, m_stackAlloc, dispatcher);
}
}
@@ -1194,6 +1194,7 @@ void btDiscreteDynamicsWorld::setConstraintSolver(btConstraintSolver* solver)
}
m_ownsConstraintSolver = false;
m_constraintSolver = solver;
m_solverIslandCallback->m_solver = solver;
}
btConstraintSolver* btDiscreteDynamicsWorld::getConstraintSolver()