Browse Source

LoadIQM() set model.meshMaterial[] (#4092)

pull/4096/head
SuperUserNameMan 5 months ago
committed by GitHub
parent
commit
7773254022
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rmodels.c

+ 2
- 0
src/rmodels.c View File

@ -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;

Loading…
Cancel
Save