소스 검색

Check whether GLTF was loaded correctly (#981)

pull/982/head
Michael Vetter 5 년 전
committed by Ray
부모
커밋
eb772bc1e0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      src/models.c

+ 3
- 0
src/models.c 파일 보기

@ -3406,6 +3406,9 @@ static Model LoadGLTF(const char *fileName)
// Read data buffers
result = cgltf_load_buffers(&options, data, fileName);
if (result != cgltf_result_success) {
TraceLog(LOG_INFO, "[%s][%s] Error loading mesh/material buffers", fileName, (data->file_type == 2)? "glb" : "gltf");
}
int primitivesCount = 0;

불러오는 중...
취소
저장