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 ItsDoot committed Feb 1, 2023
1 parent 810a9c7 commit ef63734
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 ef63734

Please sign in to comment.