From 1dd2be6768c50a0f586b35cd7fd8f511ee1ad66b Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Fri, 6 Dec 2024 19:50:40 +0100 Subject: [PATCH] Application: fix connected Vector3d X/Z drag/sliders. --- src/Application/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/Application.cpp b/src/Application/Application.cpp index eaa712d..ecade15 100644 --- a/src/Application/Application.cpp +++ b/src/Application/Application.cpp @@ -451,7 +451,7 @@ Application::drawVector3dDrag(Containers::StringView id, Vector3d& vec, float sp ImGui::DragScalar("##Y", ImGuiDataType_Double, &vec.y(), speed, &min.y(), &max.y(), y_format, flags); ImGui::PopItemWidth(); ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::DragScalar("##X", ImGuiDataType_Double, &vec.x(), speed, &min.z(), &max.z(), z_format, flags); + ImGui::DragScalar("##Z", ImGuiDataType_Double, &vec.z(), speed, &min.z(), &max.z(), z_format, flags); ImGui::PopItemWidth(); ImGui::PopID(); } @@ -486,7 +486,7 @@ Application::drawVector3dSlider(Containers::StringView id, Vector3d& vec, Vector ImGui::SliderScalar("##Y", ImGuiDataType_Double, &vec.y(), &min.y(), &max.y(), y_format, flags); ImGui::PopItemWidth(); ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::SliderScalar("##X", ImGuiDataType_Double, &vec.x(), &min.z(), &max.z(), z_format, flags); + ImGui::SliderScalar("##Z", ImGuiDataType_Double, &vec.z(), &min.z(), &max.z(), z_format, flags); ImGui::PopItemWidth(); ImGui::PopID(); }