We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b3f0f commit 630d9c5Copy full SHA for 630d9c5
crates/bevy_render/src/mesh/shape/regular_polygon.rs
@@ -40,9 +40,9 @@ impl From<RegularPolygon> for Mesh {
40
}
41
42
let mut mesh = Mesh::new(PrimitiveTopology::TriangleList);
43
- mesh.set_attribute(Mesh::ATTRIBUTE_POSITION, positions);
44
- mesh.set_attribute(Mesh::ATTRIBUTE_NORMAL, normals);
45
- 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);
46
mesh.set_indices(Some(Indices::U32(indices)));
47
mesh
48
0 commit comments