From 323aa70e3c6bccd1c0f636d1e2ce1273a27aa24c Mon Sep 17 00:00:00 2001 From: Steve Frampton <40193522+FarmingtonS9@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:36:22 +1000 Subject: [PATCH] Utilise new method for 2d circle example. (#15022) # Objective Replaced the existing instantiation of the 2D Circle in the 2d_shapes.rs file with the `new` method. - Ensures consistency in instantiating 2D primitive shapes in the examples. ## Solution Replaced the existing instantiation of the 2D Circle in the 2d_shapes.rs file with the `new` method. - Ensures consistency in instantiating 2D primitive shapes in the examples. ## Testing - None: Should be straight-forward enough to not warrant a test (I will eat my words if I am wrong). --- --- examples/2d/2d_shapes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/2d/2d_shapes.rs b/examples/2d/2d_shapes.rs index 37e81e40c2..bd007d77df 100644 --- a/examples/2d/2d_shapes.rs +++ b/examples/2d/2d_shapes.rs @@ -33,7 +33,7 @@ fn setup( commands.spawn(Camera2dBundle::default()); let shapes = [ - Mesh2dHandle(meshes.add(Circle { radius: 50.0 })), + Mesh2dHandle(meshes.add(Circle::new(50.0))), Mesh2dHandle(meshes.add(CircularSector::new(50.0, 1.0))), Mesh2dHandle(meshes.add(CircularSegment::new(50.0, 1.25))), Mesh2dHandle(meshes.add(Ellipse::new(25.0, 50.0))),