From 72bdd123a2646a1316199b65eaecb12959b1b6b3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 21 Oct 2022 10:36:12 +0200 Subject: [PATCH] geom-exp:: 'load from file' appears in the geometry menu --- geom-exp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index 92bc57a5..68665b24 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -272,8 +272,9 @@ EX geometry_filter gf_regular_3d = {"regular 3D honeycombs", [] { EX geometry_filter gf_quotient = {"interesting quotient spaces", [] { return forced_quotient() && !elliptic; }}; +EX geometry_filter gf_tes_file = {"load from file", [] { return arb::in(); }}; -EX vector available_filters = { &gf_hyperbolic, &gf_spherical, &gf_euclidean, &gf_other, &gf_regular_2d, &gf_regular_3d, &gf_quotient }; +EX vector available_filters = { &gf_hyperbolic, &gf_spherical, &gf_euclidean, &gf_other, &gf_regular_2d, &gf_regular_3d, &gf_quotient, &gf_tes_file }; void ge_select_filter() { cmode = sm::SIDE | sm::MAYDARK; @@ -366,6 +367,7 @@ bool same_tiling(eGeometry g2) { } void ge_select_tiling() { + if(current_filter == &gf_tes_file) { popScreen(); set_or_configure_geometry(gArbitrary); } cmode = sm::SIDE | sm::MAYDARK; gamescreen();