History

Merge branch 'master' of https://github.com/highfidelity/hifi into editControllerMapping

David Back committed 8 years ago

Commit 96d2ba62 parents 0e53fa3 156f1dc19 files · +353 −84Browse files

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

Unified · Split

interface/src/Application.cpp+8−0
@@ -1866,6 +1866,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1865 unmodified lines
18661866 });
18671867
18681868 EntityTree::setAddMaterialToEntityOperator([this](const QUuid& entityID, graphics::MaterialLayer material, const std::string& parentMaterialName) {
1869+ if (_aboutToQuit) {
1870+ return false;
1871+ }
1872+
18691873 // try to find the renderable
18701874 auto renderable = getEntities()->renderableForEntityId(entityID);
18711875 if (renderable) {
@@ -1881,6 +1885,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 9 unmodified lines
18811885 return false;
18821886 });
18831887 EntityTree::setRemoveMaterialFromEntityOperator([this](const QUuid& entityID, graphics::MaterialPointer material, const std::string& parentMaterialName) {
1888+ if (_aboutToQuit) {
1889+ return false;
1890+ }
1891+
18841892 // try to find the renderable
18851893 auto renderable = getEntities()->renderableForEntityId(entityID);
18861894 if (renderable) {