summaryrefslogtreecommitdiff
path: root/src/editor/gui.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-27 10:08:14 +0100
committeraura <nw@moneybot.cc>2026-02-27 10:08:14 +0100
commit7c0e1e9b3beb0ab5f00c27eb97b84570c532b9ac (patch)
treee9e9a8b14fc2698fe6895a5903ff98f1960d3b46 /src/editor/gui.cpp
parent66561ea2fb7f76c408c08e21132e58914329faba (diff)
parent17780f161914e30aaeb1321872730f7fb2cd26c3 (diff)
Merge branch 'tool-updates'
Diffstat (limited to 'src/editor/gui.cpp')
-rw-r--r--src/editor/gui.cpp12
1 files changed, 11 insertions, 1 deletions
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;