collide: Handle CollisionBox bam read without 2D info

This commit is contained in:
rdb 2024-10-28 11:57:27 +01:00
parent d758d2b232
commit 9cbc45b9bf
1 changed files with 8 additions and 0 deletions

View File

@ -1449,5 +1449,13 @@ fillin(DatagramIterator& scan, BamReader* manager) {
v.read_datagram(scan);
_points[i].push_back(PointDef(p, v));
}
if (size < 4) {
LPoint3 array[4];
array[0] = _vertex[plane_def[i][0]];
array[1] = _vertex[plane_def[i][1]];
array[2] = _vertex[plane_def[i][2]];
array[3] = _vertex[plane_def[i][3]];
setup_points(array, array+4, i);
}
}
}