fix(editor): cleaner cursor info display in Sculpt panel header

This commit is contained in:
Kelsi 2026-05-05 09:21:44 -07:00
parent da79244fc5
commit dce51d9de6

View file

@ -503,11 +503,11 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1.0f), "Load or create terrain first");
ImGui::End(); return;
}
// Show cursor height at top of panel for quick reference
// Show cursor info at top of panel
auto& cursorBrush = app.getTerrainEditor().brush();
auto cp = cursorBrush.getPosition();
ImGui::TextColored(ImVec4(0.7f, 0.8f, 1.0f, 1.0f),
"Height: %.1f (%.0f, %.0f)", cp.z, cp.x, cp.y);
"Cursor: %.0f, %.0f H: %.1f", cp.x, cp.y, cp.z);
ImGui::Separator();
auto& s = app.getTerrainEditor().brush().settings();
const char* modes[] = {"Raise", "Lower", "Smooth", "Flatten", "Level", "Erode"};