Skip to content

Commit

Permalink
Fix bug where texture atlas maps could not be saved for models and maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan-Greve committed Apr 12, 2024
1 parent f40120d commit 52affc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SourceFiles/draw_dat_browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52affc3

Please sign in to comment.