arb:: fixed shape id info in unmirror

This commit is contained in:
Zeno Rogue 2021-07-30 15:28:53 +02:00
parent c70dc65846
commit 21942ff7b9
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ EX void unmirror() {
int s = isize(sh);
for(int i=0; i<s; i++)
sh.push_back(sh[i]);
for(int i=0; i<2*s; i++)
sh[i].id = i;
for(int i=s; i<s+s; i++) {
for(auto& v: sh[i].vertices)
v[1] = -v[1];