clean up setup code

This commit is contained in:
IceSentry 2025-07-13 13:46:24 -04:00
parent c3855d30a3
commit 0c922176fe

View File

@ -44,15 +44,10 @@ fn main() {
App::new() App::new()
.add_plugins(DefaultPlugins) .add_plugins(DefaultPlugins)
.add_plugins(CustomRenderedMeshPipelinePlugin) .add_plugins(CustomRenderedMeshPipelinePlugin)
.add_systems( .add_systems(Startup, setup)
Startup,
(setup, setup2).run_if(resource_exists::<AssetServer>),
)
.run(); .run();
} }
fn setup2() {}
/// Spawns the objects in the scene. /// Spawns the objects in the scene.
fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) { fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
// Build a custom triangle mesh with colors // Build a custom triangle mesh with colors