Skip to content

Commit

Permalink
Fix Model:getVertexBuffer for models without animations;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Feb 14, 2025
1 parent bc26ad5 commit 0d9a3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -5417,7 +5417,7 @@ void lovrModelSetNodeTransform(Model* model, uint32_t node, float position[3], f
}

Buffer* lovrModelGetVertexBuffer(Model* model) {
return model->rawVertexBuffer;
return model->rawVertexBuffer ? model->rawVertexBuffer : model->vertexBuffer;
}

Buffer* lovrModelGetIndexBuffer(Model* model) {
Expand Down

0 comments on commit 0d9a3a9

Please sign in to comment.