mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
OK, one more try.
This commit is contained in:
parent
3e8b5c8714
commit
8ec03979da
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ void appendIndex(MeshData& data, QVector<int>& indices, int index) {
|
||||||
indices.append(newIndex);
|
indices.append(newIndex);
|
||||||
data.indices.insert(vertex, newIndex);
|
data.indices.insert(vertex, newIndex);
|
||||||
data.extracted.newIndices.insert(vertexIndex, newIndex);
|
data.extracted.newIndices.insert(vertexIndex, newIndex);
|
||||||
data.extracted.mesh.vertices.append(data.vertices.at(vertexIndex));
|
data.extracted.mesh.vertices.append(data.vertices.at(qMin(vertexIndex, data.vertices.size() - 1)));
|
||||||
data.extracted.mesh.normals.append(normal);
|
data.extracted.mesh.normals.append(normal);
|
||||||
data.extracted.mesh.texCoords.append(vertex.texCoord);
|
data.extracted.mesh.texCoords.append(vertex.texCoord);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue