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
52945294 if (_nearbyEntitiesStabilityCount >= MINIMUM_NEARBY_ENTITIES_STABILITY_COUNT) {
52955295 // We've seen the same number of nearby entities for several stats packets in a row. assume we've got all
52965296 // the local entities.
5297+ bool result = true;
52975298 foreach (EntityItemPointer entity, entities) {
52985299 if (entity->shouldBePhysical() && !entity->isReadyToComputeShape()) {
52995300 static QString repeatedMessage =
53005301 LogHandler::getInstance().addRepeatedMessageRegex("Physics disabled until entity loads: .*");
53015302 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;
53035305 }
53045306 }
5305− return true;
5307+ return result;
53065308 }
53075309 return false;
53085310 }