Skip to content

Commit

Permalink
Fix CI (#234)
Browse files Browse the repository at this point in the history
* Use `RenderAssetUsages`

* Specify which `RegularPolygon` to use
  • Loading branch information
Nilirad authored Feb 5, 2024
1 parent b4f1aaa commit 9a4d801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl ShapePath {
///
/// ```
/// # use bevy::prelude::*;
/// # use bevy_prototype_lyon::prelude::*;
/// # use bevy_prototype_lyon::prelude::{RegularPolygon, *};
/// #
/// # #[derive(Component)]
/// # struct Player;
Expand Down Expand Up @@ -73,7 +73,7 @@ impl ShapePath {
///
/// ```
/// # use bevy::prelude::*;
/// # use bevy_prototype_lyon::prelude::*;
/// # use bevy_prototype_lyon::prelude::{RegularPolygon, *};
/// #
/// # #[derive(Component)]
/// # struct Player;
Expand Down
7 changes: 2 additions & 5 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
use bevy::{
prelude::*,
render::{
mesh::Indices, render_asset::RenderAssetPersistencePolicy,
render_resource::PrimitiveTopology,
},
render::{mesh::Indices, render_asset::RenderAssetUsages, render_resource::PrimitiveTopology},
sprite::Mesh2dHandle,
};
use lyon_tessellation::{self as tess, BuffersBuilder};
Expand Down Expand Up @@ -132,7 +129,7 @@ fn stroke(
fn build_mesh(buffers: &VertexBuffers) -> Mesh {
let mut mesh = Mesh::new(
PrimitiveTopology::TriangleList,
RenderAssetPersistencePolicy::Unload,
RenderAssetUsages::RENDER_WORLD,
);
mesh.set_indices(Some(Indices::U32(buffers.indices.clone())));
mesh.insert_attribute(
Expand Down

0 comments on commit 9a4d801

Please sign in to comment.