Fix pipeline fails (#70)

* Removes some unused imports causing linter to fail
* Removes a redundant `InitAsset` variant that was accidentally included
  in #57
This commit is contained in:
Danny McGee
2024-03-01 20:30:05 -05:00
committed by GitHub
parent e79a7d4f4c
commit 1f2bd9a6ae
3 changed files with 2 additions and 9 deletions
-4
View File
@@ -7,7 +7,6 @@ use scene::ImportSceneEvent;
#[cfg(feature = "wasm")]
use serde_repr::{Deserialize_repr, Serialize_repr};
use space_editor::space_prefab::plugins::PrefabPlugin;
#[cfg(feature = "wasm")]
use wasm_bindgen::prelude::*;
@@ -137,8 +136,6 @@ pub enum InitAsset {
/// Initialize the application by retargeting a Mixamo animation onto the
/// bundled `Mannequin.gltf` model.
MixamoAnim(String),
/// Initialize the application by loading an arbitary model given an identifier
MediaAsset(String),
}
pub fn start(init: InitParams, mode: StudioMode, window_config: Option<Window>) -> App {
@@ -234,6 +231,5 @@ fn init_from_asset(app: &mut App, asset: InitAsset, skybox_id: String) {
ew.send(ImportSceneEvent(scene.clone()));
});
}
InitAsset::MediaAsset(_) => todo!(),
}
}
+1 -4
View File
@@ -1,7 +1,4 @@
use bevy::{
prelude::*, render::render_resource::Extent3d, transform::components::Transform,
window::PrimaryWindow,
};
use bevy::{prelude::*, render::render_resource::Extent3d, transform::components::Transform};
use clap::{Args, Parser, Subcommand};
use studio::headless::{start_headless, HeadlessMode};
+1 -1
View File
@@ -26,7 +26,7 @@ use crate::{
camera_controller::{CameraController, CameraControllerBundle},
change_tracking::{ChangeTracker, ChangeTrackingPlugin},
debug::DebugPoint,
headless::{self, is_headless, is_not_headless, HeadlessSettings},
headless::{is_headless, is_not_headless, HeadlessSettings},
math::{Combinable, Extrema},
screenshot::ScreenCapture,
MainCamera,