mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
skip non-existant meshes
This commit is contained in:
parent
cb9a5466d5
commit
2ba35e6398
1 changed files with 3 additions and 0 deletions
|
@ -742,6 +742,9 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& info) {
|
|||
int32_t meshCount = 0;
|
||||
int32_t pointListIndex = 0;
|
||||
for (auto& mesh : meshes) {
|
||||
if (!mesh) {
|
||||
continue;
|
||||
}
|
||||
const gpu::BufferView& vertices = mesh->getVertexBuffer();
|
||||
const gpu::BufferView& indices = mesh->getIndexBuffer();
|
||||
const gpu::BufferView& parts = mesh->getPartBuffer();
|
||||
|
|
Loading…
Reference in a new issue