mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Fix Reload Content menu item
This commit is contained in:
parent
966945d08c
commit
2fbb436bc5
1 changed files with 8 additions and 1 deletions
|
@ -2741,12 +2741,19 @@ void Application::cameraMenuChanged() {
|
|||
}
|
||||
|
||||
void Application::reloadResourceCaches() {
|
||||
// Clear entities out of view frustum
|
||||
_viewFrustum.setPosition(glm::vec3(0.0f, 0.0f, TREE_SCALE));
|
||||
_viewFrustum.setOrientation(glm::quat());
|
||||
queryOctree(NodeType::EntityServer, PacketType::EntityQuery, _entityServerJurisdictions);
|
||||
|
||||
emptyLocalCache();
|
||||
|
||||
|
||||
DependencyManager::get<AnimationCache>()->refreshAll();
|
||||
DependencyManager::get<ModelCache>()->refreshAll();
|
||||
DependencyManager::get<SoundCache>()->refreshAll();
|
||||
DependencyManager::get<TextureCache>()->refreshAll();
|
||||
|
||||
DependencyManager::get<NodeList>()->reset(); // Force redownload of .fst models
|
||||
}
|
||||
|
||||
void Application::rotationModeChanged() {
|
||||
|
|
Loading…
Reference in a new issue