diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/editor/editor_window.cpp | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/editor/editor_window.cpp')
| -rw-r--r-- | src/editor/editor_window.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/editor/editor_window.cpp b/src/editor/editor_window.cpp index 51ca67d..bd70418 100644 --- a/src/editor/editor_window.cpp +++ b/src/editor/editor_window.cpp @@ -108,7 +108,7 @@ void editor_update_toolview( GAME_EDITOR* e ) { gui_editor_toolview_update( egui->tool ); } -void settool( U8 t ) { +void editor_settool( U8 t ) { editor->tool.type = t; if( editor->gui.v2d ) editor->gui.v2d->poly_drag = 0; @@ -116,6 +116,10 @@ void settool( U8 t ) { editor_update_toolview( editor ); } +void settool( U8 t ) { + editor_settool( t ); +} + const char* editor_tool_name() { switch( editor->tool.type ) { case EDITOR_TOOL_SELECT: return "select"; |
