Skip to content

Commit

Permalink
Merge pull request #1808 from hannobraun/update
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
hannobraun authored May 1, 2023
2 parents a2579f6 + d4c6013 commit 55dec8e
Show file tree
Hide file tree
Showing 11 changed files with 139 additions and 61 deletions.
163 changes: 119 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/fj-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
anyhow = "1.0.70"
anyhow = "1.0.71"
fj.workspace = true
fj-export.workspace = true
fj-host.workspace = true
Expand All @@ -23,7 +23,7 @@ fj-viewer.workspace = true
fj-window.workspace = true

[dependencies.clap]
version = "4.2.4"
version = "4.2.5"
features = ["derive", "string"]

[dependencies.figment]
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ type-map = "0.5.0"

[dev-dependencies]
pretty_assertions = "1.3.0"
anyhow = "1.0.70"
anyhow = "1.0.71"
2 changes: 1 addition & 1 deletion crates/fj-viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ egui-wgpu = "0.21.0"
fj-interop.workspace = true
fj-math.workspace = true
nalgebra = "0.32.2"
tobj = "3.2.5"
tobj = "4.0.0"
raw-window-handle = "0.5.2"
thiserror = "1.0.40"
tracing = "0.1.37"
Expand Down
5 changes: 4 additions & 1 deletion crates/fj-viewer/src/graphics/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ pub fn load_model(

let mut materials = Vec::new();
for m in obj_materials? {
let texture_data: &[u8] = assets.get_asset(m.diffuse_texture.as_str());
let texture_data: &[u8] = match m.diffuse_texture {
Some(diffuse_texture) => assets.get_asset(diffuse_texture.as_str()),
None => continue,
};

let diffuse_texture = texture::Texture::from_bytes(
device,
Expand Down
Loading

0 comments on commit 55dec8e

Please sign in to comment.