History

Clear resource caches instead of restarting

Atlante45 committed 11 years ago

Commit ee3a8b11 parent ed296854 files · +19 −4Browse files

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

Unified · Split

interface/src/Application.cpp+5−1
@@ -2414,7 +2414,11 @@ void Application::cameraMenuChanged() { · 2413 unmodified lines
24142414
24152415 void Application::clearCacheAndRestart() {
24162416 emptyLocalCache();
2417− exit(RESTART_CODE);
2417+
2418+ DependencyManager::get<AnimationCache>()->refreshAll();
2419+ DependencyManager::get<GeometryCache>()->refreshAll();
2420+ DependencyManager::get<SoundCache>()->refreshAll();
2421+ DependencyManager::get<TextureCache>()->refreshAll();
24182422 }
24192423
24202424 void Application::rotationModeChanged() {