PIU now works in the underlying map -- underlying geometry only is too fragile

This commit is contained in:
Zeno Rogue
2019-11-30 18:06:47 +01:00
parent 30329df05c
commit d63b14da5c
8 changed files with 19 additions and 31 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ void virtualRebase(cell*& base, T& at, const U& check) {
auto w = hybrid::get_where(base);
auto d = product_decompose(check(at)).first;
at = mscale(at, -d);
hybrid::in_underlying_map([&] { virtualRebase(w.first, at, check); });
PIU( virtualRebase(w.first, at, check) );
if(d > cgi.plevel / 2) { w.second++; d -= cgi.plevel; }
if(d < -cgi.plevel / 2) { w.second--; d += cgi.plevel; }
at = mscale(at, +d);