diff --git a/crates/editor_ui/src/menu_toolbars.rs b/crates/editor_ui/src/menu_toolbars.rs index 20df64c5..99b1efe4 100644 --- a/crates/editor_ui/src/menu_toolbars.rs +++ b/crates/editor_ui/src/menu_toolbars.rs @@ -39,7 +39,6 @@ impl Plugin for BottomMenuPlugin { app.init_resource::(); app.init_resource::(); - app.add_systems( Update, bottom_menu diff --git a/crates/editor_ui/src/meshless_visualizer.rs b/crates/editor_ui/src/meshless_visualizer.rs index f87a1511..f85b5689 100644 --- a/crates/editor_ui/src/meshless_visualizer.rs +++ b/crates/editor_ui/src/meshless_visualizer.rs @@ -1,9 +1,6 @@ use anyhow::anyhow; use bevy::{ - math::primitives as math_shapes, - prelude::*, - render::view::RenderLayers, - utils::HashMap, + math::primitives as math_shapes, prelude::*, render::view::RenderLayers, utils::HashMap, }; use bevy_asset_loader::{ asset_collection::AssetCollection, diff --git a/crates/editor_ui/src/tools/gizmo.rs b/crates/editor_ui/src/tools/gizmo.rs index 10bc9277..8a8e2409 100644 --- a/crates/editor_ui/src/tools/gizmo.rs +++ b/crates/editor_ui/src/tools/gizmo.rs @@ -399,12 +399,10 @@ impl EditorTool for GizmoTool { if let Some(parent) = cell.get_entity(parent.get()) { if let Some(parent_global) = unsafe { parent.get::() } { if let Some(global) = unsafe { ecell.get::() } { - if let Some((_, transforms)) = Gizmo::new(gizmo_config) - .interact( - ui, - &[bevy_to_gizmo_transform(&global.compute_transform())], - ) - { + if let Some((_, transforms)) = Gizmo::new(gizmo_config).interact( + ui, + &[bevy_to_gizmo_transform(&global.compute_transform())], + ) { disable_pan_orbit = true; let new_transform = gizmo_to_bevy_transform(&transforms[0]); diff --git a/crates/prefab/src/spawn_system.rs b/crates/prefab/src/spawn_system.rs index a2995e50..ffe8eeb4 100644 --- a/crates/prefab/src/spawn_system.rs +++ b/crates/prefab/src/spawn_system.rs @@ -207,14 +207,17 @@ pub fn sync_spritesheet( texture_atlas.to_texture_atlas(prefab, &mut texture_atlases, &asset_server) { if let Some(clip) = clips.clips.get(&clip_name.name) { - commands.entity(e).insert(SpriteBundle { - texture: texture_atlas.clone().texture.unwrap_or_default(), - transform: Transform::from_scale(Vec3::splat(6.0)), - ..default() - }).insert(TextureAtlas { - layout: atlas, - index: clip.first, - }); + commands + .entity(e) + .insert(SpriteBundle { + texture: texture_atlas.clone().texture.unwrap_or_default(), + transform: Transform::from_scale(Vec3::splat(6.0)), + ..default() + }) + .insert(TextureAtlas { + layout: atlas, + index: clip.first, + }); }; } }