mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +02:00
wrapping the dependencyManager::get<> call with ifdef to prevent the log from constantly spitting out that instance does not exist
This commit is contained in:
parent
f2c6cb79f7
commit
da071abd8b
1 changed files with 7 additions and 0 deletions
|
@ -274,6 +274,8 @@ static QTimer pingTimer;
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
static bool DISABLE_WATCHDOG = true;
|
static bool DISABLE_WATCHDOG = true;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
||||||
static const QString DISABLE_WATCHDOG_FLAG{ "HIFI_DISABLE_WATCHDOG" };
|
static const QString DISABLE_WATCHDOG_FLAG{ "HIFI_DISABLE_WATCHDOG" };
|
||||||
static bool DISABLE_WATCHDOG = nsightActive() || QProcessEnvironment::systemEnvironment().contains(DISABLE_WATCHDOG_FLAG);
|
static bool DISABLE_WATCHDOG = nsightActive() || QProcessEnvironment::systemEnvironment().contains(DISABLE_WATCHDOG_FLAG);
|
||||||
#endif
|
#endif
|
||||||
|
@ -5180,11 +5182,13 @@ ivec2 Application::getMouse() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
FaceTracker* Application::getActiveFaceTracker() {
|
FaceTracker* Application::getActiveFaceTracker() {
|
||||||
|
#ifdef HAVE_DDE
|
||||||
auto dde = DependencyManager::get<DdeFaceTracker>();
|
auto dde = DependencyManager::get<DdeFaceTracker>();
|
||||||
|
|
||||||
if (dde && dde->isActive()) {
|
if (dde && dde->isActive()) {
|
||||||
return static_cast<FaceTracker*>(dde.data());
|
return static_cast<FaceTracker*>(dde.data());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -7228,6 +7232,9 @@ void Application::nodeKilled(SharedNodePointer node) {
|
||||||
|
|
||||||
_entityEditSender.nodeKilled(node);
|
_entityEditSender.nodeKilled(node);
|
||||||
|
|
||||||
|
qDebug() << "NODE KIlled: " << node->getType() << "********************************************************";
|
||||||
|
|
||||||
|
|
||||||
if (node->getType() == NodeType::AudioMixer) {
|
if (node->getType() == NodeType::AudioMixer) {
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "audioMixerKilled");
|
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "audioMixerKilled");
|
||||||
} else if (node->getType() == NodeType::EntityServer) {
|
} else if (node->getType() == NodeType::EntityServer) {
|
||||||
|
|
Loading…
Reference in a new issue