more comments and simplification of graphics sheet export
This commit is contained in:
@@ -565,8 +565,9 @@ static bool save_party_const(const cUniverse& univ, fs::path dest_file = "") {
|
||||
}
|
||||
|
||||
if(spec_scen_g.party_sheet) {
|
||||
extern void debug_show_texture(const sf::Texture& texture, float seconds = 2, std::string label = "");
|
||||
// debug_show_texture(*spec_scen_g.party_sheet);
|
||||
sf::Image party_pics = spec_scen_g.party_sheet->copyToImage();
|
||||
party_pics.flipVertically();
|
||||
fs::path tempPath = tempDir/"temp.png";
|
||||
party_pics.saveToFile(tempPath.string());
|
||||
std::ostream& pic_out = partyOut.newFile("save/export.png");
|
||||
|
Reference in New Issue
Block a user