Skip to content

Commit

Permalink
wasm deploy attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadeperfect committed Aug 27, 2024
1 parent 5f397c8 commit 7b1b66d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 79 deletions.
93 changes: 17 additions & 76 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ serde_json = "1.0"
tracing = "0.1"
anyhow = "1.0.66"
bevy_panorbit_camera = { version = "0.19", features = ["bevy_egui"] }

wasm-bindgen = "0.2.93"
# bevy_egui = "0.29.0" # Use the version compatible with your Bevy version
bevy_egui = { version = "0.28", default-features = false, features = [
"render",
"default_fonts",
] }

[profile.release]
opt-level = 'z'

[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
9 changes: 7 additions & 2 deletions src/mesh_ops.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::Result;
use anyhow::{anyhow, Result};

use bevy::{
math::Vec3,
prelude::Mesh,
Expand Down Expand Up @@ -109,7 +110,11 @@ pub trait mesh_to_line_list {

impl mesh_to_line_list for Mesh {
fn mesh_to_line_list(&self) -> LineList {
mesh_to_line_list(self)
match mesh_to_line_list(self) {
Ok(line_list) => line_list,
Err(e) => panic!("Failed to convert mesh to line list: {}", e),
}

}
}

Expand Down

0 comments on commit 7b1b66d

Please sign in to comment.