Commit Graph

30 Commits

Author SHA1 Message Date
530d8eb4e6 Merge main into fix/skinned-glb-hardening (resolve conflict in tools/skinned_glb.py)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:32:20 +01:00
16bca432e8 skinned_glb: reject malformed gfx_off and bool vertex_count (BUILD-1532) 2026-11-25 13:55:58 +05:00
ced0d9e423 skinned_glb: validate GLB chunks, accessor bounds, skeleton cycles, skin streams, and indices 2026-11-25 03:56:45 +01:00
d8e8f23b97 skinned_glb: a drawable-local bone keeps the own_skeleton parent it names (ASSET-569) (#6797)
Squash-merged after diff review of PR #6797 - skinned_glb: a drawable-local bone keeps the own_skeleton parent it names (ASSET-569)
2026-11-23 10:00:12 -06:00
d239fd8556 tools: accept UTF-8 BOM JSON inputs in ten utilities (#6779)
Squash-merged after diff review of PR #6779 - tools: fix BOM-prefixed JSON inputs in 10 utilities (batch 01)
2026-11-23 09:56:38 -06:00
0e337dc82e Check weighted joint indices before encoding GLB skin attributes (#6817)
Squash-merged after diff review of PR #6817 - skinned_glb: report weighted joint indices that exceed UNSIGNED_SHORT
2026-11-23 09:49:51 -06:00
c18cf36435 tools/skinned_glb.py: refuse an output that replaces a source file (#2985)
Squash-merged after diff review of PR #2985
2026-11-23 09:46:15 -06:00
dbc09eb549 Merge pull request #4344 from bobcatchris
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:13:51 -05:00
e87c91e3de Merge pull request #3178 from Leo Leahy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:54 -05:00
bfcd5af121 skinned_glb: resolve inferred ped parent index against JointSet indices 2026-11-22 22:22:17 -03:00
03283383df skinned_glb: make failed replaces clean up read-only temps 2026-11-22 19:21:24 -06:00
4a2222c575 skinned_glb: use a unique temp file for atomic publish 2026-11-22 18:55:29 -06:00
b7cf3fcdce Merge pull request #3535 from Bora Sevim 2026-11-22 17:02:35 -05:00
7ead52da08 Merge pull request #3178 from Leo Leahy 2026-11-22 17:00:49 -05:00
dfdd798897 skinned_glb: an empty, cut-off or non-UTF-8 model.json is one error line, not a traceback (BUILD-1031)
_load_json called json.load unguarded, and main catches only SkinError and
OSError, so a model.json an interrupted export left behind ended in a
JSONDecodeError or UnicodeDecodeError traceback. It now raises SkinError
naming the file, which main prints as error: and exit 2, like the tool's
other bad inputs. Tests cover the three cases for the skeleton, a component
and _load_json itself.
2026-11-22 23:50:28 +03:00
1274249500 skinned_glb: restrict prefix fallback to unnumbered aliases 2026-11-22 17:27:35 -03:00
38c7a49562 Merge pull request #3178 from Leo Leahy 2026-11-22 15:15:28 -05:00
192b216b4e Merge pull request #3105 from Vonsek 2026-11-22 15:14:51 -05:00
b3bd9dbb9a Merge pull request #3059 from Vonsek 2026-11-22 15:14:27 -05:00
34d828edfe skinned_glb: compare uppercase prefix tokens and mask zero-weight joints before mapping 2026-11-22 16:35:41 -03:00
a66a49c3fc fix(assets): align compact skinned GLB vertex attributes
Repacking normalized byte UVs removes their source stride. Restore four-byte vertex alignment so consumers can use the exported coordinates.
2026-11-22 20:23:30 +01:00
032dd6d9f8 fix(assets): read interleaved GLB attributes through their last element
The accessor size includes the strides between elements and the final element itself. Counting a trailing stride rejects valid attributes at the end of a BIN chunk.
2026-11-22 20:15:26 +01:00
dd1be7b5e3 skinned_glb: fix numpy parity and pin the packed 0x8C paths
Zero zero-weight joint indices before the palette lookup, so the numpy path matches the stdlib path instead of raising IndexError.

Strengthen the packed test to set bits 12-15, and add tests for mesh_blob.sections and the empty component list. Document that only 0x8C is accepted (no measured 0x8B layout), add the 0x8C docs row and correct the test count to 15.
2026-11-22 19:12:25 +00:00
6180a1a976 skinned_glb: accept the packed 0x8c joint layout
Slots 8/9 may store four u32 words per vertex with the joint index in bits 0..11. Convert that to the same 4 x u8 rows as 0x25, rejecting an index above 255 and a stream shorter than 16 bytes per vertex.

Add synthetic coverage for the decode, an out-of-range index and a short stream; document the layout beside 0x25.
2026-11-22 18:24:25 +00:00
bc2780d30e skinned_glb: note the optional numpy path 2026-11-22 18:20:33 +00:00
c851a8ae79 skinned_glb: reject an empty component list 2026-11-22 18:20:33 +00:00
7fd2ad12ce skinned_glb: note the optional numpy path 2026-11-22 16:39:17 +00:00
f7f7cd66e8 skinned_glb: reject an empty component list 2026-11-22 16:38:12 +00:00
8dea28d4e2 docs: record the skinned GLB layout; fix per-component joint counts 2026-11-22 16:35:25 +00:00
e20ced9262 tools: export a skinned GLB from the ped skin streams 2026-11-22 16:34:30 +00:00