fixed a crash bug on loading file tessellations

This commit is contained in:
Zeno Rogue 2019-12-27 23:38:28 +01:00
parent d3d1d689fa
commit e00e117278
1 changed files with 5 additions and 0 deletions

View File

@ -701,6 +701,11 @@ void geometry_information::generate_floorshapes() {
mh.zebraval = i;
auto& sh = c.shapes[i];
ms.type = mh.type = sh.size();
}
for(int i=0; i<n; i++) {
auto &ms = models[i];
auto &mh = modelh[i];
auto& sh = c.shapes[i];
for(int j=0; j<sh.size(); j++) {
auto& co = sh.connections[j];
mh.c.connect(j, &modelh[get<0>(co)], get<1>(co), get<2>(co));