Fix Reload Content menu item not reloading FST files
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2764,12 +2764,19 @@ void Application::cameraMenuChanged() { · 2763 unmodified lines | ||
| 2764 | 2764 | } |
| 2765 | 2765 | |
| 2766 | 2766 | 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 | + | |
| 2767 | 2772 | emptyLocalCache(); |
| 2768 | − | |
| 2773 | + | |
| 2769 | 2774 | DependencyManager::get<AnimationCache>()->refreshAll(); |
| 2770 | 2775 | DependencyManager::get<ModelCache>()->refreshAll(); |
| 2771 | 2776 | DependencyManager::get<SoundCache>()->refreshAll(); |
| 2772 | 2777 | DependencyManager::get<TextureCache>()->refreshAll(); |
| 2778 | + | |
| 2779 | + DependencyManager::get<NodeList>()->reset(); // Force redownload of .fst models | |
| 2773 | 2780 | } |
| 2774 | 2781 | |
| 2775 | 2782 | void Application::rotationModeChanged() { |