From 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 28 Jul 2026 19:11:34 +0200 Subject: finish undo/redo --- src/editor/texturepicker.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/editor/texturepicker.cpp') 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 ); -- cgit v1.2.3