Skip to content

Commit

Permalink
LoadIQM() set model.meshMaterial[] (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperUserNameMan authored Jun 23, 2024
1 parent d582bec commit 7773254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -4326,6 +4326,8 @@ static Model LoadIQM(const char *fileName)
model.materials[i] = LoadMaterialDefault();
model.materials[i].maps[MATERIAL_MAP_ALBEDO].texture = LoadTexture(TextFormat("%s/%s", basePath, material));

model.meshMaterial[i] = i;

TRACELOG(LOG_DEBUG, "MODEL: [%s] mesh name (%s), material (%s)", fileName, name, material);

model.meshes[i].vertexCount = imesh[i].num_vertexes;
Expand Down

0 comments on commit 7773254

Please sign in to comment.