clean up setup code
This commit is contained in:
parent
c3855d30a3
commit
0c922176fe
@ -44,15 +44,10 @@ fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_plugins(CustomRenderedMeshPipelinePlugin)
|
||||
.add_systems(
|
||||
Startup,
|
||||
(setup, setup2).run_if(resource_exists::<AssetServer>),
|
||||
)
|
||||
.add_systems(Startup, setup)
|
||||
.run();
|
||||
}
|
||||
|
||||
fn setup2() {}
|
||||
|
||||
/// Spawns the objects in the scene.
|
||||
fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
|
||||
// Build a custom triangle mesh with colors
|
||||
|
Loading…
Reference in New Issue
Block a user