Skip to content

Commit

Permalink
07/08/2020
Browse files Browse the repository at this point in the history
- Fix issue with relative diffuse texture paths
  • Loading branch information
Suficio committed Aug 6, 2020
1 parent df10d93 commit 65e8ac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "textured-voxelizer"
version = "0.1.1"
version = "0.1.2"
authors = ["CheezBarger <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn generate_octree(opt: &Opt) -> VoxelTree<Vector4<u8>> {

material_images.push(image);
} else {
let image_path = file.canonicalize().unwrap().parent().unwrap().join(&material.diffuse_texture);
let image_path = opt.file.parent().unwrap().join(&material.diffuse_texture);
println!("\tLoading diffuse texture for {} from: {:?}", material.name, image_path);

let image = match image::open(&image_path) {
Expand Down

0 comments on commit 65e8ac9

Please sign in to comment.