Fix T39104: 2 clothes on a collision object cause crash
This was caused by static variables used in plNearestPoints(). For now solved by making the solvers allocated in the stack, seems no noticeable affect on the simulation speed so far.
This commit is contained in:
parent
0a3850fde4
commit
de86b7097f
Notes:
blender-bot
2023-02-14 11:24:03 +01:00
Referenced by issue #39104, 2 clothes on a collision object cause crash
|
@ -354,11 +354,11 @@ double plNearestPoints(float p1[3], float p2[3], float p3[3], float q1[3], float
|
|||
// btVoronoiSimplexSolver sGjkSimplexSolver;
|
||||
// btGjkEpaPenetrationDepthSolver penSolverPtr;
|
||||
|
||||
static btSimplexSolverInterface sGjkSimplexSolver;
|
||||
/*static*/ btSimplexSolverInterface sGjkSimplexSolver;
|
||||
sGjkSimplexSolver.reset();
|
||||
|
||||
static btGjkEpaPenetrationDepthSolver Solver0;
|
||||
static btMinkowskiPenetrationDepthSolver Solver1;
|
||||
/*static*/ btGjkEpaPenetrationDepthSolver Solver0;
|
||||
/*static*/ btMinkowskiPenetrationDepthSolver Solver1;
|
||||
|
||||
btConvexPenetrationDepthSolver* Solver = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue