irr torus works only in orientable for now -- disabled for other

This commit is contained in:
Zeno Rogue 2019-12-08 12:22:27 +01:00
parent f03c5b5c1d
commit 2fb1210811
2 changed files with 2 additions and 1 deletions

View File

@ -509,6 +509,7 @@ EX namespace euc {
EX bool valid_irr_torus() {
if(!IRREGULAR) return true;
if(eu.twisted) return false;
for(int i=0; i<2; i++) {
auto x = eu.user_axes[i];
coord dm = eutester;

View File

@ -751,7 +751,7 @@ EX namespace gp {
dialog::addBoolItem(XLAT("irregular"), IRREGULAR, 'i');
dialog::add_action(dialog::add_confirmation([=] () {
if(min_quality && !irr::bitruncations_requested) irr::bitruncations_requested++;
if(euclid && !bounded) {
if(euclid && (!bounded || nonorientable)) {
println(hlog, XLAT("To create Euclidean irregular tesselations, first enable a torus"));
return;
}