History

Merge pull request #14386 from ctrlaltdavid/M19820

Fix entities not loading when Interface doesn't have focus

Jamil Akram committed 7 years ago

Commit 822e4bf2 parents bb2239c e12833d1 file · +3 −7Browse files

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

Unified · Split

interface/src/Application.cpp+3−7
@@ -6105,9 +6105,7 @@ void Application::update(float deltaTime) { · 6104 unmodified lines
6105 {6105 {
6106 PROFILE_RANGE_EX(app, "Overlays", 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount());6106 PROFILE_RANGE_EX(app, "Overlays", 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount());
6107 PerformanceTimer perfTimer("overlays");6107 PerformanceTimer perfTimer("overlays");
6108 if (qApp->shouldPaint()) {6108 _overlays.update(deltaTime);
6109 _overlays.update(deltaTime);
6110 }
6111 }6109 }
6112 6110
6113 // Update _viewFrustum with latest camera and view frustum data...6111 // Update _viewFrustum with latest camera and view frustum data...
@@ -6192,10 +6190,8 @@ void Application::update(float deltaTime) { · 78 unmodified lines
6192 PROFILE_RANGE_EX(app, "PostUpdateLambdas", 0xffff0000, (uint64_t)0);6190 PROFILE_RANGE_EX(app, "PostUpdateLambdas", 0xffff0000, (uint64_t)0);
6193 PerformanceTimer perfTimer("postUpdateLambdas");6191 PerformanceTimer perfTimer("postUpdateLambdas");
6194 std::unique_lock<std::mutex> guard(_postUpdateLambdasLock);6192 std::unique_lock<std::mutex> guard(_postUpdateLambdasLock);
6195 if (qApp->shouldPaint()) {6193 for (auto& iter : _postUpdateLambdas) {
6196 for (auto& iter : _postUpdateLambdas) {6194 iter.second();
6197 iter.second();
6198 }
6199 }6195 }
6200 _postUpdateLambdas.clear();6196 _postUpdateLambdas.clear();
6201 }6197 }