From d714ac0f353175e82338c9072e32c5bb364e4608 Mon Sep 17 00:00:00 2001 From: antopilo Date: Sun, 24 Nov 2024 00:02:14 -0500 Subject: [PATCH] Fixed snapping not working on Z axis --- Editor/src/Windows/EditorInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index 21a2142b..3a5854f8 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -1934,7 +1934,7 @@ namespace Nuake { ImGui::PushItemWidth(75); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, { 6, 6 }); ImGui::DragFloat("##snapping", &CurrentSnapping.x, 0.01f, 0.0f, 100.0f); - CurrentSnapping = { CurrentSnapping.x, CurrentSnapping.x, CurrentSnapping.z }; + CurrentSnapping = { CurrentSnapping.x, CurrentSnapping.x, CurrentSnapping.x }; ImGui::PopStyleVar(); ImGui::PopItemWidth();