mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix for meshes with no texture coordinates.
This commit is contained in:
parent
55de8ceb85
commit
70485a0ba9
1 changed files with 3 additions and 2 deletions
|
@ -615,8 +615,9 @@ void appendIndex(MeshData& data, QVector<int>& indices, int index) {
|
|||
}
|
||||
|
||||
if (data.texCoordIndices.isEmpty()) {
|
||||
vertex.texCoord = data.texCoords.at(index);
|
||||
|
||||
if (index < data.texCoords.size()) {
|
||||
vertex.texCoord = data.texCoords.at(index);
|
||||
}
|
||||
} else {
|
||||
int texCoordIndex = data.texCoordIndices.at(index);
|
||||
if (texCoordIndex >= 0) {
|
||||
|
|
Loading…
Reference in a new issue