mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
fix safe landing to load proper set of objects
This commit is contained in:
parent
b8485361ce
commit
0d8fdf51c5
2 changed files with 9 additions and 5 deletions
|
@ -1376,6 +1376,13 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
connect(myAvatar.get(), &MyAvatar::positionGoneTo,
|
||||
DependencyManager::get<AddressManager>().data(), &AddressManager::storeCurrentAddress);
|
||||
|
||||
connect(myAvatar.get(), &MyAvatar::positionGoneTo, this, [this] {
|
||||
if (!_physicsEnabled) {
|
||||
// when we arrive somewhere without physics enabled --> startSafeLanding
|
||||
_octreeProcessor.startSafeLanding();
|
||||
}
|
||||
}, Qt::QueuedConnection);
|
||||
|
||||
connect(myAvatar.get(), &MyAvatar::skeletonModelURLChanged, [](){
|
||||
QUrl avatarURL = qApp->getMyAvatar()->getSkeletonModelURL();
|
||||
setCrashAnnotation("avatar", avatarURL.toString().toStdString());
|
||||
|
@ -5931,10 +5938,8 @@ void Application::resetPhysicsReadyInformation() {
|
|||
_gpuTextureMemSizeStabilityCount = 0;
|
||||
_gpuTextureMemSizeAtLastCheck = 0;
|
||||
_physicsEnabled = false;
|
||||
_octreeProcessor.startSafeLanding();
|
||||
}
|
||||
|
||||
|
||||
void Application::reloadResourceCaches() {
|
||||
resetPhysicsReadyInformation();
|
||||
|
||||
|
@ -6932,6 +6937,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType) {
|
|||
bool interstitialModeEnabled = DependencyManager::get<NodeList>()->getDomainHandler().getInterstitialModeEnabled();
|
||||
|
||||
ConicalViewFrustum sphericalView;
|
||||
sphericalView.set(_viewFrustum);
|
||||
sphericalView.setSimpleRadius(INITIAL_QUERY_RADIUS);
|
||||
|
||||
if (interstitialModeEnabled) {
|
||||
|
|
|
@ -91,9 +91,7 @@ void SafeLanding::finishSequence(int first, int last) {
|
|||
|
||||
void SafeLanding::addToSequence(int sequenceNumber) {
|
||||
Locker lock(_lock);
|
||||
if (_trackingEntities) {
|
||||
_sequenceNumbers.insert(sequenceNumber);
|
||||
}
|
||||
_sequenceNumbers.insert(sequenceNumber);
|
||||
}
|
||||
|
||||
void SafeLanding::updateTracking() {
|
||||
|
|
Loading…
Reference in a new issue