mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 17:44:52 +01:00
minedmap/tile_renderer: print tile path relative to output directory
We will use strings of the same format for mipmap tile paths.
This commit is contained in:
parent
b1f7f759f1
commit
86382772c3
1 changed files with 4 additions and 4 deletions
|
@ -64,9 +64,9 @@ impl<'a> TileRenderer<'a> {
|
||||||
println!(
|
println!(
|
||||||
"Rendering tile {}",
|
"Rendering tile {}",
|
||||||
output_path
|
output_path
|
||||||
.file_name()
|
.strip_prefix(&self.config.output_dir)
|
||||||
.unwrap_or_default()
|
.expect("tile path must be in output directory")
|
||||||
.to_string_lossy(),
|
.display(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let region = self.load_region(coords)?;
|
let region = self.load_region(coords)?;
|
||||||
|
@ -85,7 +85,7 @@ impl<'a> TileRenderer<'a> {
|
||||||
|
|
||||||
for coords in regions {
|
for coords in regions {
|
||||||
if let Err(err) = self.render_tile(coords) {
|
if let Err(err) = self.render_tile(coords) {
|
||||||
eprintln!("Failed to render tile {:?}: {:?}", coords, err,);
|
eprintln!("Failed to render tile {:?}: {:?}", coords, err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue