mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-27 17:17:25 -04:00
Update rmodels.c
This commit is contained in:
@ -6336,6 +6336,7 @@ static Model LoadGLTF(const char *fileName)
|
|||||||
for (int j = 0; j < model.skeleton.boneCount; j++) model.boneMatrices[j] = MatrixIdentity();
|
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)
|
if (model.skeleton.boneCount == 0)
|
||||||
{
|
{
|
||||||
RL_FREE(model.currentPose);
|
RL_FREE(model.currentPose);
|
||||||
|
|||||||
Reference in New Issue
Block a user