From edbbbe7e611fa8ff6ea34d1634dd4a3b5177b1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Wed, 13 Jul 2022 15:46:15 +0200 Subject: [PATCH] editor: transform tool fix --- Editor/Translator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/Translator.cpp b/Editor/Translator.cpp index b54a41a92..79b9ed943 100644 --- a/Editor/Translator.cpp +++ b/Editor/Translator.cpp @@ -1057,6 +1057,11 @@ void Translator::PreTranslate() { Scene& scene = wi::scene::GetScene(); + if (!dragging) + { + transform.ClearTransform(); + } + // Find the center of all the entities that are selected: XMVECTOR centerV = XMVectorSet(0, 0, 0, 0); float count = 0;