Files
materialcraft/crates/formats
c479765c01 Reject non-finite glTF normals before normalizing them (#114)
A glTF file with NaN or infinite normals currently loads as a mesh with zero normals instead of being rejected like non-finite positions, UVs and OBJ normals.

Check raw glTF normals for finiteness before transforming them and return an error for non-finite values, matching the existing finish() checks.

Test: gltf_non_finite_normals_are_rejected failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-06 10:10:27 +01:00
..