mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Delay AvatarInputs instantiation to first paint
This commit is contained in:
parent
783be53125
commit
4711c23d9d
1 changed files with 3 additions and 1 deletions
|
@ -2619,6 +2619,9 @@ void Application::idle() {
|
|||
firstIdle = false;
|
||||
connect(offscreenUi.data(), &OffscreenUi::showDesktop, this, &Application::showDesktop);
|
||||
_overlayConductor.setEnabled(Menu::getInstance()->isOptionChecked(MenuOption::Overlays));
|
||||
} else {
|
||||
// FIXME: AvatarInputs are positioned incorrectly if instantiated before the first paint
|
||||
AvatarInputs::getInstance()->update();
|
||||
}
|
||||
|
||||
PROFILE_RANGE(__FUNCTION__);
|
||||
|
@ -2641,7 +2644,6 @@ void Application::idle() {
|
|||
checkChangeCursor();
|
||||
|
||||
Stats::getInstance()->updateStats();
|
||||
AvatarInputs::getInstance()->update();
|
||||
|
||||
_simCounter.increment();
|
||||
|
||||
|
|
Loading…
Reference in a new issue