History

don't early-exit from the loop that checks for loaded collision hulls because the check is what causes the hulls to be constructed

Seth Alves committed 9 years ago

Commit bd677151 parent 050a7e81 file · +4 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+4−2
@@ -5294,15 +5294,17 @@ bool Application::nearbyEntitiesAreReadyForPhysics() { · 5293 unmodified lines
5294 if (_nearbyEntitiesStabilityCount >= MINIMUM_NEARBY_ENTITIES_STABILITY_COUNT) {5294 if (_nearbyEntitiesStabilityCount >= MINIMUM_NEARBY_ENTITIES_STABILITY_COUNT) {
5295 // We've seen the same number of nearby entities for several stats packets in a row. assume we've got all5295 // We've seen the same number of nearby entities for several stats packets in a row. assume we've got all
5296 // the local entities.5296 // the local entities.
5297 bool result = true;
5297 foreach (EntityItemPointer entity, entities) {5298 foreach (EntityItemPointer entity, entities) {
5298 if (entity->shouldBePhysical() && !entity->isReadyToComputeShape()) {5299 if (entity->shouldBePhysical() && !entity->isReadyToComputeShape()) {
5299 static QString repeatedMessage =5300 static QString repeatedMessage =
5300 LogHandler::getInstance().addRepeatedMessageRegex("Physics disabled until entity loads: .*");5301 LogHandler::getInstance().addRepeatedMessageRegex("Physics disabled until entity loads: .*");
5301 qCDebug(interfaceapp) << "Physics disabled until entity loads: " << entity->getID() << entity->getName();5302 qCDebug(interfaceapp) << "Physics disabled until entity loads: " << entity->getID() << entity->getName();
5302 return false;5303 // don't break here because we want all the relevant entities to start their downloads
5304 result = false;
5303 }5305 }
5304 }5306 }
5305 return true;5307 return result;
5306 }5308 }
5307 return false;5309 return false;
5308}5310}