else
fprintf(stderr, "No faces found.\n");
- mesh->mat_idx = amesh->mMaterialIndex;
return mesh;
}
mat->dtex = scene->find_texture(tex_fname.c_str());
if(!mat->dtex) {
- printf("!mat->dtex\n");
-
mat->dtex = gfx_create_texture();
if(!mat->dtex->load(tex_fname.c_str())) {
return textures[i];
}
}
- fprintf(stderr, "Texture %s not found.\n", name);
return 0;
}
\ No newline at end of file