summaryrefslogtreecommitdiff
path: root/src/editor/texturepicker.cpp
diff options
context:
space:
mode:
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 );