Skip to content
Snippets Groups Projects
Commit 8c8afab0 authored by John Mitchell's avatar John Mitchell
Browse files

Use release version of bevy_svg

parent 48529c19
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ members = ["kayak_ui_macros", "kayak_font"]
[dependencies]
bevy = { version = "0.10", default-features = false, features = ["bevy_render", "bevy_sprite", "bevy_asset", "bevy_winit", "bevy_core_pipeline", "bevy_ui"] }
bevy_svg = { git = "https://github.com/StarArawn/bevy_svg", rev = "9a14eccf680b7fa98f6494fc10e8aaa5931de5c8", default-features = false }
bevy_svg = { version="0.10.1", default-features = false }
bitflags = "1.3.2"
bytemuck = "1.12"
dashmap = "5.4"
......
use std::path::Path;
use std::path::{Path, PathBuf};
use bevy::{
prelude::{Assets, HandleUntyped, Mesh, Plugin},
......@@ -17,8 +17,10 @@ impl Plugin for IconsPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
let expand_less_bytes = include_bytes!("expand_less.svg");
let expand_more_bytes = include_bytes!("expand_more.svg");
let mut expand_less = Svg::from_bytes(expand_less_bytes, Path::new("")).unwrap();
let mut expand_more = Svg::from_bytes(expand_more_bytes, Path::new("")).unwrap();
let mut expand_less =
Svg::from_bytes(expand_less_bytes, Path::new(""), None::<PathBuf>).unwrap();
let mut expand_more =
Svg::from_bytes(expand_more_bytes, Path::new(""), None::<PathBuf>).unwrap();
let mut meshes = app.world.get_resource_mut::<Assets<Mesh>>().unwrap();
expand_less.mesh = meshes.add(expand_less.tessellate());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment