arb:: fixed cycle_length and repeat_value for conversion

This commit is contained in:
Zeno Rogue 2022-06-23 09:33:41 +02:00
parent 7480d1e0ea
commit 61fcf62727
1 changed files with 2 additions and 1 deletions

View File

@ -1514,7 +1514,8 @@ EX void convert() {
int t = s->type;
sh.vertices.clear();
sh.connections.clear();
sh.repeat_value = id.modval;
sh.cycle_length = id.modval;
sh.repeat_value = t / id.modval;
for(int j=0; j<t; j++) {
auto co = currentmap->get_corner(s, j);
sh.vertices.push_back(co);