Skip to content

Commit

Permalink
gltf: do not import IoTaskPool in wasm (bevyengine#5038)
Browse files Browse the repository at this point in the history
# Objective

- Remove a warning when building for wasm

## Solution

- Do not import the dependency when building for wasm
  • Loading branch information
mockersf authored and james7132 committed Jun 22, 2022
1 parent 8959c2d commit 9a8e5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use bevy_render::{
view::VisibleEntities,
};
use bevy_scene::Scene;
#[cfg(not(target_arch = "wasm32"))]
use bevy_tasks::IoTaskPool;
use bevy_transform::{components::Transform, TransformBundle};

Expand Down

0 comments on commit 9a8e5fd

Please sign in to comment.