early break if single object sleeping
This commit is contained in:
@@ -261,13 +261,11 @@ void btSimulationIslandManager::buildIslands(btDispatcher* dispatcher,btCollisio
|
|||||||
btAssert((colObj0->getIslandTag() == islandId) || (colObj0->getIslandTag() == -1));
|
btAssert((colObj0->getIslandTag() == islandId) || (colObj0->getIslandTag() == -1));
|
||||||
if (colObj0->getIslandTag() == islandId)
|
if (colObj0->getIslandTag() == islandId)
|
||||||
{
|
{
|
||||||
if (colObj0->getActivationState()== ACTIVE_TAG)
|
if (colObj0->getActivationState()== ACTIVE_TAG ||
|
||||||
{
|
colObj0->getActivationState()== DISABLE_DEACTIVATION)
|
||||||
allSleeping = false;
|
|
||||||
}
|
|
||||||
if (colObj0->getActivationState()== DISABLE_DEACTIVATION)
|
|
||||||
{
|
{
|
||||||
allSleeping = false;
|
allSleeping = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user