mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 11:35:20 +02:00
fixing merge conflicts
This commit is contained in:
commit
735ff04fad
8 changed files with 10 additions and 28 deletions
|
@ -3492,10 +3492,6 @@ bool Application::isServerlessMode() const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Application::isInterstitialMode() const {
|
|
||||||
return _interstitialMode;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Application::setIsInterstitialMode(bool interstitialMode) {
|
void Application::setIsInterstitialMode(bool interstitialMode) {
|
||||||
if (_interstitialMode != interstitialMode) {
|
if (_interstitialMode != interstitialMode) {
|
||||||
_interstitialMode = interstitialMode;
|
_interstitialMode = interstitialMode;
|
||||||
|
@ -6422,7 +6418,6 @@ void Application::clearDomainAvatars() {
|
||||||
void Application::domainURLChanged(QUrl domainURL) {
|
void Application::domainURLChanged(QUrl domainURL) {
|
||||||
// disable physics until we have enough information about our new location to not cause craziness.
|
// disable physics until we have enough information about our new location to not cause craziness.
|
||||||
resetPhysicsReadyInformation();
|
resetPhysicsReadyInformation();
|
||||||
auto urlStr = domainURL.toString().toStdString();
|
|
||||||
setIsServerlessMode(domainURL.scheme() != URL_SCHEME_HIFI);
|
setIsServerlessMode(domainURL.scheme() != URL_SCHEME_HIFI);
|
||||||
if (isServerlessMode()) {
|
if (isServerlessMode()) {
|
||||||
loadServerlessDomain(domainURL);
|
loadServerlessDomain(domainURL);
|
||||||
|
@ -6433,7 +6428,6 @@ void Application::domainURLChanged(QUrl domainURL) {
|
||||||
void Application::goToErrorDomainURL(QUrl errorDomainURL) {
|
void Application::goToErrorDomainURL(QUrl errorDomainURL) {
|
||||||
// disable physics until we have enough information about our new location to not cause craziness.
|
// disable physics until we have enough information about our new location to not cause craziness.
|
||||||
resetPhysicsReadyInformation();
|
resetPhysicsReadyInformation();
|
||||||
auto urlStr = errorDomainURL.toString().toStdString();
|
|
||||||
setIsServerlessMode(errorDomainURL.scheme() != URL_SCHEME_HIFI);
|
setIsServerlessMode(errorDomainURL.scheme() != URL_SCHEME_HIFI);
|
||||||
if (isServerlessMode()) {
|
if (isServerlessMode()) {
|
||||||
loadServerlessDomain(errorDomainURL, true);
|
loadServerlessDomain(errorDomainURL, true);
|
||||||
|
|
|
@ -310,7 +310,7 @@ public:
|
||||||
void saveNextPhysicsStats(QString filename);
|
void saveNextPhysicsStats(QString filename);
|
||||||
|
|
||||||
bool isServerlessMode() const;
|
bool isServerlessMode() const;
|
||||||
bool isInterstitialMode() const;
|
bool isInterstitialMode() const { return _interstitialMode; }
|
||||||
|
|
||||||
void replaceDomainContent(const QString& url);
|
void replaceDomainContent(const QString& url);
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <DependencyManager.h>
|
#include <DependencyManager.h>
|
||||||
#include <DomainHandler.h>
|
#include <DomainHandler.h>
|
||||||
|
#include <AddressManager.h>
|
||||||
#include <NodeList.h>
|
#include <NodeList.h>
|
||||||
|
|
||||||
// Because the connection monitor is created at startup, the time we wait on initial load
|
// Because the connection monitor is created at startup, the time we wait on initial load
|
||||||
|
@ -40,7 +41,7 @@ void ConnectionMonitor::init() {
|
||||||
|
|
||||||
connect(&_timer, &QTimer::timeout, this, []() {
|
connect(&_timer, &QTimer::timeout, this, []() {
|
||||||
qDebug() << "ConnectionMonitor: Showing connection failure window";
|
qDebug() << "ConnectionMonitor: Showing connection failure window";
|
||||||
qApp->goToErrorDomainURL(ERROR_DOMAIN_URL);
|
qApp->goToErrorDomainURL(REDIRECT_HIFI_ADDRESS);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "Menu.h"
|
#include "Menu.h"
|
||||||
#include "SceneScriptingInterface.h"
|
#include "SceneScriptingInterface.h"
|
||||||
#include "SafeLanding.h"
|
|
||||||
|
|
||||||
OctreePacketProcessor::OctreePacketProcessor():
|
OctreePacketProcessor::OctreePacketProcessor():
|
||||||
_safeLanding(new SafeLanding())
|
_safeLanding(new SafeLanding())
|
||||||
|
@ -133,11 +132,3 @@ void OctreePacketProcessor::processPacket(QSharedPointer<ReceivedMessage> messag
|
||||||
void OctreePacketProcessor::startEntitySequence() {
|
void OctreePacketProcessor::startEntitySequence() {
|
||||||
_safeLanding->startEntitySequence(qApp->getEntities());
|
_safeLanding->startEntitySequence(qApp->getEntities());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OctreePacketProcessor::isLoadSequenceComplete() const {
|
|
||||||
return _safeLanding->isLoadSequenceComplete();
|
|
||||||
}
|
|
||||||
|
|
||||||
float OctreePacketProcessor::domainLoadingProgress() {
|
|
||||||
return _safeLanding->loadingProgressPercentage();
|
|
||||||
}
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <ReceivedPacketProcessor.h>
|
#include <ReceivedPacketProcessor.h>
|
||||||
#include <ReceivedMessage.h>
|
#include <ReceivedMessage.h>
|
||||||
|
|
||||||
class SafeLanding;
|
#include "SafeLanding.h"
|
||||||
|
|
||||||
/// Handles processing of incoming voxel packets for the interface application. As with other ReceivedPacketProcessor classes
|
/// Handles processing of incoming voxel packets for the interface application. As with other ReceivedPacketProcessor classes
|
||||||
/// the user is responsible for reading inbound packets and adding them to the processing queue by calling queueReceivedPacket()
|
/// the user is responsible for reading inbound packets and adding them to the processing queue by calling queueReceivedPacket()
|
||||||
|
@ -26,8 +26,8 @@ public:
|
||||||
~OctreePacketProcessor();
|
~OctreePacketProcessor();
|
||||||
|
|
||||||
void startEntitySequence();
|
void startEntitySequence();
|
||||||
bool isLoadSequenceComplete() const;
|
bool isLoadSequenceComplete() const { return _safeLanding->isLoadSequenceComplete(); }
|
||||||
float domainLoadingProgress();
|
float domainLoadingProgress() { return _safeLanding->loadingProgressPercentage(); }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void packetVersionMismatch();
|
void packetVersionMismatch();
|
||||||
|
@ -41,4 +41,4 @@ private slots:
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<SafeLanding> _safeLanding;
|
std::unique_ptr<SafeLanding> _safeLanding;
|
||||||
};
|
};
|
||||||
#endif // hifi_OctreePacketProcessor_h
|
#endif // hifi_OctreePacketProcessor_h
|
||||||
|
|
|
@ -113,8 +113,7 @@ bool SafeLanding::isLoadSequenceComplete() {
|
||||||
float SafeLanding::loadingProgressPercentage() {
|
float SafeLanding::loadingProgressPercentage() {
|
||||||
Locker lock(_lock);
|
Locker lock(_lock);
|
||||||
if (_maxTrackedEntityCount > 0) {
|
if (_maxTrackedEntityCount > 0) {
|
||||||
int trackedEntityCount = _trackedEntities.size();
|
return ((_maxTrackedEntityCount - _trackedEntities.size()) / (float)_maxTrackedEntityCount);
|
||||||
return ((_maxTrackedEntityCount - trackedEntityCount) / (float)_maxTrackedEntityCount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
|
|
@ -48,8 +48,6 @@ QString AddressManager::getProtocol() const {
|
||||||
QUrl AddressManager::currentAddress(bool domainOnly) const {
|
QUrl AddressManager::currentAddress(bool domainOnly) const {
|
||||||
QUrl hifiURL = _domainURL;
|
QUrl hifiURL = _domainURL;
|
||||||
|
|
||||||
auto urlStr = hifiURL.toString().toStdString();
|
|
||||||
|
|
||||||
if (!domainOnly && hifiURL.scheme() == URL_SCHEME_HIFI) {
|
if (!domainOnly && hifiURL.scheme() == URL_SCHEME_HIFI) {
|
||||||
hifiURL.setPath(currentPath());
|
hifiURL.setPath(currentPath());
|
||||||
}
|
}
|
||||||
|
@ -156,8 +154,8 @@ void AddressManager::goForward() {
|
||||||
|
|
||||||
void AddressManager::goToLastAddress() {
|
void AddressManager::goToLastAddress() {
|
||||||
// this should always return something as long as the URL isn't empty.
|
// this should always return something as long as the URL isn't empty.
|
||||||
auto urlStr = _lastVisitedURL.toString().toStdString();
|
handleUrl(_lastVisitedURL,
|
||||||
handleUrl(_lastVisitedURL, LookupTrigger::AttemptedRefresh);
|
LookupTrigger::AttemptedRefresh);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddressManager::storeCurrentAddress() {
|
void AddressManager::storeCurrentAddress() {
|
||||||
|
|
|
@ -149,7 +149,6 @@ public:
|
||||||
UserInput,
|
UserInput,
|
||||||
Back,
|
Back,
|
||||||
Forward,
|
Forward,
|
||||||
//Retry,
|
|
||||||
StartupFromSettings,
|
StartupFromSettings,
|
||||||
DomainPathResponse,
|
DomainPathResponse,
|
||||||
Internal,
|
Internal,
|
||||||
|
|
Loading…
Reference in a new issue