implemented swapdim for arb

This commit is contained in:
Zeno Rogue 2020-06-03 16:42:26 +02:00
parent 15465d417f
commit b04061f8a8
1 changed files with 11 additions and 0 deletions

View File

@ -931,5 +931,16 @@ EX void choose() {
});
}
#if MAXMDIM >= 4
auto hooksw = addHook(hooks_swapdim, 100, [] {
for(auto& p: {&current, &slided})
for(auto& s: p->shapes)
for(auto& v: s.vertices)
swapmatrix(v);
for(auto& p: altmap) for(auto& pp: p.second) swapmatrix(pp.second);
for(auto& p: arbi_matrix) swapmatrix(p.second.second);
});
#endif
EX }
}