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
2414 2414
2415void Application::clearCacheAndRestart() {2415void Application::clearCacheAndRestart() {
2416 emptyLocalCache();2416 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();
2418}2422}
2419 2423
2420void Application::rotationModeChanged() {2424void Application::rotationModeChanged() {