mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +00:00
island management bug
This commit is contained in:
parent
0607bfe9de
commit
60fe5affd7
@ -228,10 +228,10 @@ void SimulationIslandManager::BuildAndProcessIslands(Dispatcher* dispatcher,Coll
|
||||
|
||||
std::vector<PersistentManifold*> islandmanifold;
|
||||
int i;
|
||||
int numManifolds = dispatcher->GetNumManifolds();
|
||||
islandmanifold.reserve(numManifolds);
|
||||
int maxNumManifolds = dispatcher->GetNumManifolds();
|
||||
islandmanifold.reserve(maxNumManifolds);
|
||||
|
||||
for (i=0;i<numManifolds ;i++)
|
||||
for (i=0;i<maxNumManifolds ;i++)
|
||||
{
|
||||
PersistentManifold* manifold = dispatcher->GetManifoldByIndexInternal(i);
|
||||
|
||||
@ -248,6 +248,7 @@ void SimulationIslandManager::BuildAndProcessIslands(Dispatcher* dispatcher,Coll
|
||||
}
|
||||
}
|
||||
|
||||
int numManifolds = islandmanifold.size();
|
||||
|
||||
// Sort manifolds, based on islands
|
||||
// Sort the vector using predicate and std::sort
|
||||
|
Loading…
Reference in New Issue
Block a user