Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2741,12 +2741,19 @@ void Application::cameraMenuChanged() { · 2740 unmodified lines | ||
| 2741 | 2741 | } |
| 2742 | 2742 | |
| 2743 | 2743 | void Application::reloadResourceCaches() { |
| 2744 | + // Clear entities out of view frustum | |
| 2745 | + _viewFrustum.setPosition(glm::vec3(0.0f, 0.0f, TREE_SCALE)); | |
| 2746 | + _viewFrustum.setOrientation(glm::quat()); | |
| 2747 | + queryOctree(NodeType::EntityServer, PacketType::EntityQuery, _entityServerJurisdictions); | |
| 2748 | + | |
| 2744 | 2749 | emptyLocalCache(); |
| 2745 | − | |
| 2750 | + | |
| 2746 | 2751 | DependencyManager::get<AnimationCache>()->refreshAll(); |
| 2747 | 2752 | DependencyManager::get<ModelCache>()->refreshAll(); |
| 2748 | 2753 | DependencyManager::get<SoundCache>()->refreshAll(); |
| 2749 | 2754 | DependencyManager::get<TextureCache>()->refreshAll(); |
| 2755 | + | |
| 2756 | + DependencyManager::get<NodeList>()->reset(); // Force redownload of .fst models | |
| 2750 | 2757 | } |
| 2751 | 2758 | |
| 2752 | 2759 | void Application::rotationModeChanged() { |