Skip to content

Commit

Permalink
refactor: import save_buffer only on non-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
manankarnik committed Jan 14, 2024
1 parent ce20f85 commit 2b484fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
mod gltf;
use gltf::{export_gltf, Output, Vertex};
use image::{codecs::png::PngEncoder, save_buffer, DynamicImage, ImageBuffer, ImageEncoder, Rgba};
#[cfg(not(target_arch = "wasm32"))]
use image::save_buffer;
use image::{codecs::png::PngEncoder, DynamicImage, ImageBuffer, ImageEncoder, Rgba};
#[cfg(not(target_arch = "wasm32"))]
use rfd::FileDialog;
#[cfg(target_arch = "wasm32")]
Expand Down

0 comments on commit 2b484fe

Please sign in to comment.