History

Fix Reload Content menu item

David Rowe committed 11 years ago

Commit 2fbb4361 parent 966945d1 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
@@ -2741,12 +2741,19 @@ void Application::cameraMenuChanged() { · 2740 unmodified lines
27412741 }
27422742
27432743 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+
27442749 emptyLocalCache();
2745−
2750+
27462751 DependencyManager::get<AnimationCache>()->refreshAll();
27472752 DependencyManager::get<ModelCache>()->refreshAll();
27482753 DependencyManager::get<SoundCache>()->refreshAll();
27492754 DependencyManager::get<TextureCache>()->refreshAll();
2755+
2756+ DependencyManager::get<NodeList>()->reset(); // Force redownload of .fst models
27502757 }
27512758
27522759 void Application::rotationModeChanged() {