mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 06:26:28 +02:00
Added sanity check for zero vertices.
This commit is contained in:
parent
76142c92f2
commit
af0d395751
1 changed files with 4 additions and 0 deletions
|
@ -806,6 +806,10 @@ void Model::renderMeshes(float alpha, bool translucent) {
|
|||
|
||||
const FBXMesh& mesh = geometry.meshes.at(i);
|
||||
int vertexCount = mesh.vertices.size();
|
||||
if (vertexCount == 0) {
|
||||
// sanity check
|
||||
continue;
|
||||
}
|
||||
|
||||
const_cast<QOpenGLBuffer&>(networkMesh.vertexBuffer).bind();
|
||||
|
||||
|
|
Loading…
Reference in a new issue