mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 14:29:50 +02:00
review changes
This commit is contained in:
parent
9fe0309ae6
commit
7bcf727a83
2 changed files with 2 additions and 5 deletions
|
@ -4980,9 +4980,8 @@ void Application::idle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
if (_keyboardFocusWaitingOnRenderable && getEntities()->renderableForEntityId(_entityIdWaitingOnRenderable.get())) {
|
if (_keyboardFocusWaitingOnRenderable && getEntities()->renderableForEntityId(_keyboardFocusedEntity.get())) {
|
||||||
QUuid entityId = _entityIdWaitingOnRenderable.get();
|
QUuid entityId = _keyboardFocusedEntity.get();
|
||||||
_entityIdWaitingOnRenderable.set(UNKNOWN_ENTITY_ID);
|
|
||||||
setKeyboardFocusEntity(UNKNOWN_ENTITY_ID);
|
setKeyboardFocusEntity(UNKNOWN_ENTITY_ID);
|
||||||
_keyboardFocusWaitingOnRenderable = false;
|
_keyboardFocusWaitingOnRenderable = false;
|
||||||
setKeyboardFocusEntity(entityId);
|
setKeyboardFocusEntity(entityId);
|
||||||
|
@ -5837,7 +5836,6 @@ void Application::setKeyboardFocusEntity(const QUuid& id) {
|
||||||
auto entityItemRenderable = entities->renderableForEntityId(entityId);
|
auto entityItemRenderable = entities->renderableForEntityId(entityId);
|
||||||
if (!entityItemRenderable) {
|
if (!entityItemRenderable) {
|
||||||
_keyboardFocusWaitingOnRenderable = true;
|
_keyboardFocusWaitingOnRenderable = true;
|
||||||
_entityIdWaitingOnRenderable.set(id);
|
|
||||||
} else if (entityItemRenderable->wantsKeyboardFocus()) {
|
} else if (entityItemRenderable->wantsKeyboardFocus()) {
|
||||||
entities->setProxyWindow(entityId, _window->windowHandle());
|
entities->setProxyWindow(entityId, _window->windowHandle());
|
||||||
if (_keyboardMouseDevice->isActive()) {
|
if (_keyboardMouseDevice->isActive()) {
|
||||||
|
|
|
@ -733,7 +733,6 @@ private:
|
||||||
|
|
||||||
bool _reticleClickPressed { false };
|
bool _reticleClickPressed { false };
|
||||||
bool _keyboardFocusWaitingOnRenderable { false };
|
bool _keyboardFocusWaitingOnRenderable { false };
|
||||||
ThreadSafeValueCache<EntityItemID> _entityIdWaitingOnRenderable;
|
|
||||||
|
|
||||||
int _avatarAttachmentRequest = 0;
|
int _avatarAttachmentRequest = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue