mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Yet another check.
This commit is contained in:
parent
a1eeef3feb
commit
0c8b3eaf1a
1 changed files with 1 additions and 0 deletions
|
@ -705,6 +705,7 @@ void appendIndex(MeshData& data, QVector<int>& indices, int index) {
|
|||
if (vertexIndex < 0) {
|
||||
vertexIndex = -vertexIndex - 1;
|
||||
}
|
||||
vertexIndex = qMin(vertexIndex, data.vertices.size() - 1);
|
||||
|
||||
Vertex vertex;
|
||||
vertex.originalIndex = vertexIndex;
|
||||
|
|
Loading…
Reference in a new issue