History

disabling dde initialization due to random crashes while closing down the socket connection on mac

amerhifi committed 7 years ago

Commit b1df4631 parent 96aa7e32 files · +19 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+17−2
@@ -867,7 +867,11 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 866 unmodified lines
867867 DependencyManager::set<ScriptCache>();
868868 DependencyManager::set<SoundCache>();
869869 DependencyManager::set<SoundCacheScriptingInterface>();
870+
871+#ifdef HAVE_DDE
870872 DependencyManager::set<DdeFaceTracker>();
873+#endif
874+
871875 DependencyManager::set<EyeTracker>();
872876 DependencyManager::set<AudioClient>();
873877 DependencyManager::set<AudioScope>();
@@ -3324,7 +3328,9 @@ void Application::onDesktopRootContextCreated(QQmlContext* surfaceContext) { · 2450 unmodified lines
33243328 surfaceContext->setContextProperty("AccountServices", AccountServicesScriptingInterface::getInstance());
33253329
33263330 surfaceContext->setContextProperty("DialogsManager", _dialogsManagerScriptingInterface);
3331+#ifdef HAVE_DDE
33273332 surfaceContext->setContextProperty("FaceTracker", DependencyManager::get<DdeFaceTracker>().data());
3333+#endif
33283334 surfaceContext->setContextProperty("AvatarManager", DependencyManager::get<AvatarManager>().data());
33293335 surfaceContext->setContextProperty("LODManager", DependencyManager::get<LODManager>().data());
33303336 surfaceContext->setContextProperty("HMD", DependencyManager::get<HMDScriptingInterface>().data());
@@ -5176,7 +5182,11 @@ ivec2 Application::getMouse() const { · 1845 unmodified lines
51765182 FaceTracker* Application::getActiveFaceTracker() {
51775183 auto dde = DependencyManager::get<DdeFaceTracker>();
51785184
5179− return dde->isActive() ? static_cast<FaceTracker*>(dde.data()) : nullptr;
5185+ if(dde){
5186+ return dde->isActive() ? static_cast<FaceTracker*>(dde.data()) : nullptr;
5187+ }else{
5188+ return nullptr;
5189+ }
51805190 }
51815191
51825192 FaceTracker* Application::getSelectedFaceTracker() {
@@ -7010,7 +7020,10 @@ void Application::copyDisplayViewFrustum(ViewFrustum& viewOut) const { · 1827 unmodified lines
70107020 // feature. However, we still use this to reset face trackers, eye trackers, audio and to optionally re-load the avatar
70117021 // rig and animations from scratch.
70127022 void Application::resetSensors(bool andReload) {
7023+#ifdef HAVE_DDE
70137024 DependencyManager::get<DdeFaceTracker>()->reset();
7025+#endif
7026+
70147027 DependencyManager::get<EyeTracker>()->reset();
70157028 _overlayConductor.centerUI();
70167029 getActiveDisplayPlugin()->resetSensors();
@@ -7402,8 +7415,10 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEnginePointe · 385 unmodified lines
74027415 scriptEngine->registerGlobalObject("AccountServices", AccountServicesScriptingInterface::getInstance());
74037416 qScriptRegisterMetaType(scriptEngine.data(), DownloadInfoResultToScriptValue, DownloadInfoResultFromScriptValue);
74047417
7418+#ifdef HAVE_DDE
74057419 scriptEngine->registerGlobalObject("FaceTracker", DependencyManager::get<DdeFaceTracker>().data());
7406−
7420+#endif
7421+
74077422 scriptEngine->registerGlobalObject("AvatarManager", DependencyManager::get<AvatarManager>().data());
74087423
74097424 scriptEngine->registerGlobalObject("LODManager", DependencyManager::get<LODManager>().data());

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t