Skip to content

Commit

Permalink
mkmodel: add check for buggy Blender version
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Oct 20, 2023
1 parent 909bb9f commit 405a423
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/mkmodel/mkmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,12 @@ int convert(const char *infn, const char *outfn)
return 1;
}

if (strstr(data->asset.generator, "Blender") && strstr(data->asset.generator, "v3.4.50")) {
fprintf(stderr, "Error: Blender version v3.4.1 has buggy glTF export (vertex colors are wrong).\nPlease upgrade Blender and export the model again.\n");
cgltf_free(data);
return 1;
}

cgltf_load_buffers(&options, data, infn);

model64_data_t *model = model64_alloc();
Expand Down

0 comments on commit 405a423

Please sign in to comment.