island management bug
This commit is contained in:
@@ -228,10 +228,10 @@ void SimulationIslandManager::BuildAndProcessIslands(Dispatcher* dispatcher,Coll
|
|||||||
|
|
||||||
std::vector<PersistentManifold*> islandmanifold;
|
std::vector<PersistentManifold*> islandmanifold;
|
||||||
int i;
|
int i;
|
||||||
int numManifolds = dispatcher->GetNumManifolds();
|
int maxNumManifolds = dispatcher->GetNumManifolds();
|
||||||
islandmanifold.reserve(numManifolds);
|
islandmanifold.reserve(maxNumManifolds);
|
||||||
|
|
||||||
for (i=0;i<numManifolds ;i++)
|
for (i=0;i<maxNumManifolds ;i++)
|
||||||
{
|
{
|
||||||
PersistentManifold* manifold = dispatcher->GetManifoldByIndexInternal(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 manifolds, based on islands
|
||||||
// Sort the vector using predicate and std::sort
|
// Sort the vector using predicate and std::sort
|
||||||
|
|||||||
Reference in New Issue
Block a user