UNDO/REDO FINALLY DONE

This commit is contained in:
RustyStriker 2022-09-08 20:23:50 +03:00
parent 718a2c3f06
commit 9652ae1a08
6 changed files with 142 additions and 21 deletions

View file

@ -42,7 +42,7 @@ pub struct ImportItem {
pub data: ExportData,
}
pub fn toml_save_sys(
pub fn json_save_sys(
mut imp_exp: ResMut<ShouldImportExport>,
shapes: Query<&ShapeData>,
images: Query<(&ImageData, &Transform)>,
@ -107,7 +107,6 @@ pub fn import_sys(
mut imp_exp: ResMut<ShouldImportExport>,
assets: Res<AssetServer>,
p_size: Res<PointSize>,
) {
imp_exp.import = false;
let file = rfd::FileDialog::new()