aboutsummaryrefslogtreecommitdiff
path: root/src/editor.rs
diff options
context:
space:
mode:
authorArne Dußin2021-01-06 22:56:37 +0100
committerArne Dußin2021-01-06 22:56:37 +0100
commitfa1afb6be3ba2d521eb0791edc0bb8e631a85327 (patch)
treee0a365444784efaaeb1eea6373b34559b6d57fbc /src/editor.rs
parent1c81d7c70fe891e6ded49d49d6a09f04ce74dd6e (diff)
parent30b23db9e86fdf72a4e7de72213df274ce19123e (diff)
downloadgraf_karto-fa1afb6be3ba2d521eb0791edc0bb8e631a85327.tar.gz
graf_karto-fa1afb6be3ba2d521eb0791edc0bb8e631a85327.zip
Merge branch 'master' into snapping
Diffstat (limited to 'src/editor.rs')
-rw-r--r--src/editor.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/editor.rs b/src/editor.rs
index 8e025dc..2cf2e41 100644
--- a/src/editor.rs
+++ b/src/editor.rs
@@ -127,20 +127,6 @@ impl Editor {
}
}
- /*
- TODO: reintroduce saving and loading
- // Handle saving and loading the editor contents to the swap file
- if rl.is_key_pressed(KeyboardKey::KEY_S) {
- self.map_data
- .write_file("swap.ron")
- .expect("Unable to write buffer file");
- } else if rl.is_key_pressed(KeyboardKey::KEY_L) {
- self.map_data
- .load_file("swap.ron")
- .expect("Unable to read buffer file");
- }
- */
-
let mouse_pos_m = transform.point_px_to_m(&rl.get_mouse_position().into());
let snapped_mouse_pos = snapper.snap(mouse_pos_m);