From 5f5e7d5f4e9b4f7fb716dedb0ba80eac04f66d43 Mon Sep 17 00:00:00 2001 From: danteruiz Date: Wed, 3 Apr 2019 10:45:40 -0700 Subject: [PATCH] a better fix --- interface/src/Application.cpp | 4 +--- interface/src/ui/Keyboard.cpp | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index f1bbb0ab9e..8225d27033 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5847,9 +5847,7 @@ void Application::reloadResourceCaches() { DependencyManager::get()->reloadAllScripts(); getOffscreenUI()->clearCache(); - auto keyboard = DependencyManager::get(); - keyboard->createKeyboard(); - keyboard->scaleKeyboard(getMyAvatar()->getSensorToWorldScale()); + DependencyManager::get()->createKeyboard(); getMyAvatar()->resetFullAvatarURL(); } diff --git a/interface/src/ui/Keyboard.cpp b/interface/src/ui/Keyboard.cpp index 1cbe31f1eb..6262210620 100644 --- a/interface/src/ui/Keyboard.cpp +++ b/interface/src/ui/Keyboard.cpp @@ -910,6 +910,9 @@ void Keyboard::loadKeyboardFile(const QString& keyboardFile) { }); _layerIndex = 0; addIncludeItemsToMallets(); + + auto myAvatar = DependencyManager::get()->getMyAvatar(); + scaleKeyboard(myAvatar->getSensorToWorldScale()); }); request->send();