From 630d9c5460cf6574380f0b1c492c5284d7267220 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 23 Feb 2022 19:09:45 -0700 Subject: [PATCH] Use new mesh attribute api --- crates/bevy_render/src/mesh/shape/regular_polygon.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_render/src/mesh/shape/regular_polygon.rs b/crates/bevy_render/src/mesh/shape/regular_polygon.rs index 984cb429b9837..14e6cdea9f5a1 100644 --- a/crates/bevy_render/src/mesh/shape/regular_polygon.rs +++ b/crates/bevy_render/src/mesh/shape/regular_polygon.rs @@ -40,9 +40,9 @@ impl From for Mesh { } let mut mesh = Mesh::new(PrimitiveTopology::TriangleList); - mesh.set_attribute(Mesh::ATTRIBUTE_POSITION, positions); - mesh.set_attribute(Mesh::ATTRIBUTE_NORMAL, normals); - mesh.set_attribute(Mesh::ATTRIBUTE_UV_0, uvs); + mesh.insert_attribute(Mesh::ATTRIBUTE_POSITION, positions); + mesh.insert_attribute(Mesh::ATTRIBUTE_NORMAL, normals); + mesh.insert_attribute(Mesh::ATTRIBUTE_UV_0, uvs); mesh.set_indices(Some(Indices::U32(indices))); mesh }