From 52affc363b310468b79eefdc43710b324acae923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bj=C3=B8rn=20Greve?= Date: Sat, 13 Apr 2024 01:44:19 +0800 Subject: [PATCH] Fix bug where texture atlas maps could not be saved for models and maps --- SourceFiles/draw_dat_browser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SourceFiles/draw_dat_browser.cpp b/SourceFiles/draw_dat_browser.cpp index 7c4dd62..5bb4aaf 100644 --- a/SourceFiles/draw_dat_browser.cpp +++ b/SourceFiles/draw_dat_browser.cpp @@ -371,6 +371,7 @@ bool parse_file(DATManager* dat_manager, int index, MapRenderer* map_renderer, data(), &selected_dat_texture.texture_id, entry->Hash); + selected_dat_texture.file_id = entry->Hash; } // The number of textures might exceed 8 for a model since each submodel might use up to 8 separate textures. @@ -752,6 +753,8 @@ bool parse_file(DATManager* dat_manager, int index, MapRenderer* map_renderer, selected_dat_texture.dat_texture.rgba_data. data(), &selected_dat_texture.texture_id, entry->Hash); + + selected_dat_texture.file_id = entry->Hash; } } else