diff --git a/examples/shader/specialized_mesh_pipeline.rs b/examples/shader/specialized_mesh_pipeline.rs index a9ad1b7a81..540eb5468a 100644 --- a/examples/shader/specialized_mesh_pipeline.rs +++ b/examples/shader/specialized_mesh_pipeline.rs @@ -44,15 +44,10 @@ fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(CustomRenderedMeshPipelinePlugin) - .add_systems( - Startup, - (setup, setup2).run_if(resource_exists::), - ) + .add_systems(Startup, setup) .run(); } -fn setup2() {} - /// Spawns the objects in the scene. fn setup(mut commands: Commands, mut meshes: ResMut>) { // Build a custom triangle mesh with colors