summaryrefslogtreecommitdiff
path: root/src/editor/texturepicker.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
committeraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
commit86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 (patch)
treea70f32a0f44b927a6d137998efa405e330689c0f /src/editor/texturepicker.cpp
parent468813b133a6a3ff0b85d3b34f1009cfeae815e4 (diff)
finish undo/redo
Diffstat (limited to 'src/editor/texturepicker.cpp')
-rw-r--r--src/editor/texturepicker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/editor/texturepicker.cpp b/src/editor/texturepicker.cpp
index 621f0c2..1152ef7 100644
--- a/src/editor/texturepicker.cpp
+++ b/src/editor/texturepicker.cpp
@@ -192,6 +192,9 @@ void gui_editor_textureview_accept( GUI_EDITOR_TEXTUREPICKER* wnd ) {
gl_texture_destroy( _gui.batch->gl, tex );
} );
+ if( wnd->pre_cb )
+ wnd->pre_cb( wnd );
+
if( !isnone ) {
if( map_add_texture_ref( editor->map, wnd->curselect ) == STAT_ALREADYEXISTS ) {
const char* name = assets_abspath( wnd->curselect->name );