Commit Graph

27 Commits

Author SHA1 Message Date
85b87608fa Merge current main and reconcile glb_writer coverage 2026-11-29 11:02:12 +08:00
39d3dc489b glb_writer: harden JSON/transform/primitive validation and shared path guard (GLB-WRITER-VALIDATION-HARDENING) 2026-11-25 01:14:25 +01:00
bb27da204a glb_writer: restore writable mode before removing staging file on failure 2026-11-24 20:50:59 +08:00
9a892a3dc6 Merge pull request #3580 from Kam471 2026-11-22 17:02:49 -05:00
24bed02de4 glb_writer: keep inline comments out of continuations
A backslash inside an inline comment ended the logical line and swallowed the next face. Split the comment before testing for a continuation; a backslash in the code before the comment still continues.
2026-11-22 21:08:18 +00:00
fbfd3ff562 glb_writer: join split OBJ lines before parsing
Join physical OBJ lines that end in a backslash into one logical line with a separating space, skipping blank and comment lines inside a continuation.
2026-11-22 20:57:51 +00:00
4aca557b89 Merge pull request #3083 from Vonsek 2026-11-22 15:14:40 -05:00
b25dabe264 Merge pull request #2902 from kapitche 2026-11-22 15:13:00 -05:00
caf67be85e Merge pull request #2671 from Vonsek 2026-11-22 15:11:20 -05:00
4a0319ba21 fix(assets): retain collinear OBJ corners in visible triangles
A zero-area triangle can swallow the UV at a collinear boundary vertex. Use the existing ear clipping path when a first-corner fan contains one.
2026-11-22 20:19:41 +01:00
d5935df1de glb_writer: refuse an output path that is the input OBJ 2026-11-22 13:38:31 -05:00
85f59988a0 Merge pull request #2714 from FreddyxS 2026-11-22 13:17:16 -05:00
9ebbe920d7 merge: preserve upstream changes alongside the asset fix 2026-11-22 19:08:50 +01:00
007ff93e84 Test GLB extension chunks and core chunk ordering 2026-11-22 18:58:51 +01:00
24cda1e605 fix(tools): keep OBJ smoothing boundaries in generated normals
Adjacent faces with different smoothing groups or disabled smoothing require separate generated normals at shared positions.
2026-11-22 18:48:22 +01:00
799ad414e5 Merge pull request #2293 from Vonsek 2026-11-22 11:43:53 -05:00
3da17e3707 Merge pull request #2092 from Vonsek 2026-11-22 11:41:44 -05:00
39e0b14964 fix(tools): preserve finite OBJ normal directions
Squaring finite components could turn a valid normal into the fallback direction. Normalize with a stable length and rescale only when the length cannot preserve the direction.
2026-11-22 17:36:49 +01:00
f1029d387f fix(tools): preserve the first record in BOM-prefixed OBJ input
The byte order mark prevents a UTF-8 OBJ parser from recognizing the first keyword. Handle the marker identically for on-disk and in-memory input.
2026-11-22 16:47:25 +01:00
fa5986c791 Merge pull request #1990 from Shrey Ratna 2026-11-22 10:40:10 -05:00
54eb276565 glb_writer: validate geometry before generating normals 2026-11-22 15:22:21 +00:00
0f474bb54c Test hard edges between explicit and generated OBJ normals 2026-11-22 15:15:07 +01:00
8ae863728b Merge pull request #1098 from nicolas 2026-11-22 02:09:05 -05:00
62dc9cb8cd Triangulate concave OBJ faces within their outlines 2026-11-21 23:35:34 -07:00
7dc224de25 Preserve material opacity and cutouts in GLB output 2026-11-21 22:58:40 -07:00
3ee73c01f3 Test weighted normals across OBJ UV seams 2026-11-22 04:48:19 +01:00
ed0ab42fa4 test(tools): add unit tests for glb_writer binary container and accessors 2026-11-22 00:59:44 +01:00