Skip to content

Commit

Permalink
gltf: do not import IoTaskPool in wasm (#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 committed Jun 20, 2022
1 parent d717c63 commit 8e8cbcc
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 8e8cbcc

Please sign in to comment.