From cdb8bed4f41f8bf95d51e6cf0e256ee10e807bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Sun, 9 Jun 2024 14:30:23 +0200 Subject: [PATCH] editor: translator should be updated while gui is in focus --- Editor/Editor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index 79fcb0fac..28387fca4 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -1079,14 +1079,14 @@ void EditorComponent::Update(float dt) } } + if (!wi::backlog::isActive() && paintToolWnd.GetMode() == PaintToolWindow::MODE::MODE_DISABLED) + { + translator.Update(camera, currentMouse, *renderPath); + } + // Camera control: if (!wi::backlog::isActive() && !GetGUI().HasFocus()) { - if (paintToolWnd.GetMode() == PaintToolWindow::MODE::MODE_DISABLED) - { - translator.Update(camera, currentMouse, *renderPath); - } - deleting = wi::input::Press(wi::input::KEYBOARD_BUTTON_DELETE); currentMouse = wi::input::GetPointer(); if (camControlStart)