From 17780f161914e30aaeb1321872730f7fb2cd26c3 Mon Sep 17 00:00:00 2001 From: kasull Date: Thu, 26 Feb 2026 04:42:05 -0500 Subject: color-code previews: polygon tool pink, wall-polygon preview cyan --- src/editor/view2d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/editor/view2d.cpp b/src/editor/view2d.cpp index 73b4062..92988df 100644 --- a/src/editor/view2d.cpp +++ b/src/editor/view2d.cpp @@ -352,7 +352,9 @@ void gui_editor_2dview_draw_poly_preview( GUI_EDITOR_2DVIEW* view ) { if( !gui_editor_2dview_build_drag_shape( view, &shape ) ) return; - CLR poly_clr = CLR::CYAN( 0.9f ); + CLR poly_clr = editor->tool.type == EDITOR_TOOL_POLY + ? CLR::MAGENTA( 0.9f ) + : CLR::CYAN( 0.9f ); for( I32 i = 0; i < shape.pointc; ++i ) { I32 next = ( i + 1 ) % shape.pointc; VEC2 p0 = gui_editor_2dview_world_to_screen( view, shape.points[i] ); -- cgit v1.2.3