From 94e0df832c83bc7b9ead0824cfbc41f166869c68 Mon Sep 17 00:00:00 2001 From: kasull Date: Thu, 26 Feb 2026 04:31:08 -0500 Subject: add wall shape dropdown and drag-based polygon creation with height controls fix wall Z bounds calculation and key index masking in input handling preserve 2D view/cursor stability when map bounds update --- src/editor/gui.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/editor/gui.cpp') diff --git a/src/editor/gui.cpp b/src/editor/gui.cpp index 39914c8..c5e44df 100644 --- a/src/editor/gui.cpp +++ b/src/editor/gui.cpp @@ -69,7 +69,17 @@ void editor_update_toolview( GAME_EDITOR* e ) { gui_editor_toolview_update( egui->tool ); } -void settool( U8 t ) { editor->tool.type = t; } +void settool( U8 t ) { + editor->tool.type = t; + + if( editor->gui.v2d ) { + editor->gui.v2d->poly_drag = 0; + } + + if( editor->gui.tool ) { + editor_update_toolview( editor ); + } +} void editor_create_toolview_column( GAME_EDITOR* e ) { GAME_EDITOR::EDITOR_GUI* egui = &e->gui; -- cgit v1.2.3