From f0224599711a80e457219e82cd9dc49415e5705e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 03:30:30 -0700 Subject: [PATCH] fix(editor): NPC template scale slider matches selected-NPC editor range (0.1-50) Template was a SliderFloat 0.5-10 while the selected-NPC editor uses DragFloat 0.1-50. Inconsistent ceilings made it surprising that an NPC could be scaled higher after placement than during placement. Now both use DragFloat with the same range. --- tools/editor/editor_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 8da6950c..cd31f15b 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -1866,7 +1866,7 @@ void EditorUI::renderNpcPanel(EditorApp& app) { if (ImGui::InputText("Name##tmpl", nameBuf, sizeof(nameBuf))) tmpl.name = nameBuf; - ImGui::SliderFloat("Scale", &tmpl.scale, 0.5f, 10.0f, "%.1f"); + ImGui::DragFloat("Scale", &tmpl.scale, 0.05f, 0.1f, 50.0f, "%.2f"); ImGui::SliderFloat("Facing", &tmpl.orientation, 0.0f, 360.0f, "%.0f deg"); ImGui::SameLine(); if (ImGui::SmallButton("Random##face")) {