feat(editor): auto-scatter checkbox for height-based object placement

This commit is contained in:
Kelsi 2026-05-05 06:18:47 -07:00
parent aa9a6a87a8
commit 506fcc29f3

View file

@ -560,6 +560,8 @@ void EditorUI::renderTexturePaintPanel(EditorApp& app) {
ImGui::DragFloat("Grass max##ap", &h2, 1.0f);
ImGui::DragFloat("Rock max##ap", &h3, 1.0f);
ImGui::Text("Above %.0f: Snow", h3);
static bool autoScatterObjects = false;
ImGui::Checkbox("Also scatter objects by band", &autoScatterObjects);
if (ImGui::Button("Apply Auto-Paint", ImVec2(-1, 0))) {
std::vector<TexturePainter::HeightBand> bands = {
{h1, "Tileset\\Tanaris\\TanarisSandBase01.blp"},