Update rmodels.c

This commit is contained in:
Ray
2026-03-09 12:52:27 +01:00
parent 78023ffca5
commit d604cd7f65

View File

@ -6336,6 +6336,7 @@ static Model LoadGLTF(const char *fileName)
for (int j = 0; j < model.skeleton.boneCount; j++) model.boneMatrices[j] = MatrixIdentity();
//----------------------------------------------------------------------------------------------------
// Free unused allocated memory in case of no bones defined
if (model.skeleton.boneCount == 0)
{
RL_FREE(model.currentPose);