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
61056105 {
61066106 PROFILE_RANGE_EX(app, "Overlays", 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount());
61076107 PerformanceTimer perfTimer("overlays");
6108− if (qApp->shouldPaint()) {
6109− _overlays.update(deltaTime);
6110− }
6108+ _overlays.update(deltaTime);
61116109 }
61126110
61136111 // Update _viewFrustum with latest camera and view frustum data...
@@ -6192,10 +6190,8 @@ void Application::update(float deltaTime) { · 78 unmodified lines
61926190 PROFILE_RANGE_EX(app, "PostUpdateLambdas", 0xffff0000, (uint64_t)0);
61936191 PerformanceTimer perfTimer("postUpdateLambdas");
61946192 std::unique_lock<std::mutex> guard(_postUpdateLambdasLock);
6195− if (qApp->shouldPaint()) {
6196− for (auto& iter : _postUpdateLambdas) {
6197− iter.second();
6198− }
6193+ for (auto& iter : _postUpdateLambdas) {
6194+ iter.second();
61996195 }
62006196 _postUpdateLambdas.clear();
62016197 }