embeddings:: editing euclid_embed parameters no longer edits them back

This commit is contained in:
Zeno Rogue 2023-02-04 01:58:34 +01:00
parent 13a90006b8
commit 4ee2c9faa3
1 changed files with 3 additions and 3 deletions

View File

@ -840,16 +840,16 @@ EX void initConfig() {
param_f(geom3::euclid_embed_scale, "euclid_embed_scale", "euclid_embed_scale")
-> editable(0, 2, 0.05, "Euclidean embedding scale", "How to scale the Euclidean map, relatively to the 3D absolute unit.", 'X')
-> set_sets([] { dialog::bound_low(0.05); })
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
-> set_reaction([] { if(vid.always3) { for(auto m: allmaps) m->on_dim_change(); }});
param_f(geom3::euclid_embed_scale_y, "euclid_embed_scale_y", "euclid_embed_scale_y")
-> editable(0, 2, 0.05, "Euclidean embedding scale Y/X", "This scaling factor affects only the Y coordinate.", 'Y')
-> set_sets([] { dialog::bound_low(0.05); })
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
-> set_reaction([] { if(vid.always3) { for(auto m: allmaps) m->on_dim_change(); }});
param_f(geom3::euclid_embed_rotate, "euclid_embed_rotate", "euclid_embed_rotate")
-> editable(0, 360, 15, "Euclidean embedding rotation", "How to rotate the Euclidean embedding, in degrees.", 'F')
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
-> set_reaction([] { if(vid.always3) { for(auto m: allmaps) m->on_dim_change(); }});
param_enum(embedded_shift_method_choice, "embedded_shift_method", "embedded_shift_method", smcBoth)
-> editable({