History

Merge pull request #5973 from ctrlaltdavid/20698

Fix Reload Content menu item not reloading FST files

Howard Stearns committed 11 years ago

Commit fdba55e2 parents a5a7c16 2fbb4361 file · +8 −1Browse files

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

Unified · Split

interface/src/Application.cpp+8−1
@@ -2764,12 +2764,19 @@ void Application::cameraMenuChanged() { · 2763 unmodified lines
27642764 }
27652765
27662766 void Application::reloadResourceCaches() {
2767+ // Clear entities out of view frustum
2768+ _viewFrustum.setPosition(glm::vec3(0.0f, 0.0f, TREE_SCALE));
2769+ _viewFrustum.setOrientation(glm::quat());
2770+ queryOctree(NodeType::EntityServer, PacketType::EntityQuery, _entityServerJurisdictions);
2771+
27672772 emptyLocalCache();
2768−
2773+
27692774 DependencyManager::get<AnimationCache>()->refreshAll();
27702775 DependencyManager::get<ModelCache>()->refreshAll();
27712776 DependencyManager::get<SoundCache>()->refreshAll();
27722777 DependencyManager::get<TextureCache>()->refreshAll();
2778+
2779+ DependencyManager::get<NodeList>()->reset(); // Force redownload of .fst models
27732780 }
27742781
27752782 void Application::rotationModeChanged() {