Skip to content

Commit

Permalink
Fix import of thiserror
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Mar 8, 2024
1 parent 328edcd commit 99b18d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/bevy_pbr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ shader_format_glsl = ["bevy_render/shader_format_glsl"]
trace = ["bevy_render/trace"]
ios_simulator = ["bevy_render/ios_simulator"]
# Enables processing meshes into meshlet meshes
meshlet_processor = ["dep:meshopt"]
meshlet_processor = ["dep:meshopt", "dep:thiserror"]

[dependencies]
# bevy
Expand All @@ -37,6 +37,7 @@ bevy_derive = { path = "../bevy_derive", version = "0.14.0-dev" }

# other
meshopt = { version = "0.2", optional = true }
thiserror = { version = "1", optional = true }
bitflags = "2.3"
fixedbitset = "0.4"
# direct dependency required for derive macro
Expand Down
1 change: 0 additions & 1 deletion crates/bevy_pbr/src/meshlet/from_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use bevy_render::{
mesh::{Indices, Mesh},
render_resource::PrimitiveTopology,
};
use bevy_utils::thiserror;
use meshopt::{build_meshlets, compute_meshlet_bounds_decoder, VertexDataAdapter};
use std::borrow::Cow;

Expand Down

0 comments on commit 99b18d5

Please sign in to comment.