New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: cannot convert float NaN to integer #1446
Comments
Hello,
If you now how you was able to produce this corrupt file don't hesitate to open a ticket on https://developer.blender.org/ |
Anyway thanks for the suggestion I will test your solution |
Besides JSON not supporting NaN values, glTF forbids them in binary mesh data as well. The IO plugin should probably either reject export operation until such vertices are removed or gracefully skip them. |
Well, if the exporter does not support this exception, it should be reported in the report which object or mesh contains the particular problem this could help when there are many objects, so as to be able to quickly identify the problem. |
@pafurijaz Thanks a lot. It seems to solve the issue |
Fix #1446 : validate meshes before export, removing NaN
Describe the bug
I attached the file that I cannot export and it took me 3 hours to find the problem because the script does not indicate the object that creates problems. but it generates a generic report, this is something that is not a big problem with a few objects but with my file with over 1700 objects it was difficult to locate the object.
.blend file/ .gltf
Nan-float.blend.tar.gz
Version
The text was updated successfully, but these errors were encountered: