Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -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 all | 5295 | // 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 | } |