From e3944ce02fb86aef423cd8f94237de4316fe442d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= <32778861+Cop46@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:27:55 +0200 Subject: [PATCH] Fixes #938, Fixes #759, Fixes #786 (#939) --- Editor/Translator.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Editor/Translator.cpp b/Editor/Translator.cpp index a7910d480..67f649416 100644 --- a/Editor/Translator.cpp +++ b/Editor/Translator.cpp @@ -503,6 +503,14 @@ void Translator::Update(const CameraComponent& camera, const XMFLOAT4& currentMo dragging = true; } + if (isScalator || isRotator || isTranslator) + { + if (dragging) + { + PostTranslate(); + } + } + if (!wi::input::Down(wi::input::MOUSE_BUTTON_LEFT)) { if (dragging) @@ -511,9 +519,6 @@ void Translator::Update(const CameraComponent& camera, const XMFLOAT4& currentMo } dragging = false; } - - PostTranslate(); - } else {