浏览代码

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

pull/4096/head
SuperUserNameMan 5 个月前
committed by GitHub
父节点
当前提交
7773254022
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/rmodels.c

+ 2
- 0
src/rmodels.c 查看文件

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

正在加载...
取消
保存