mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #885] OLD-7648: glb_skinning: bound bufferView-less zero accessors and write JSON reports atomically #923
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#923
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/885
Author: @narekshaghoyandev
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:ubiq-glb-skinning-zero-accessor-and-atomic-write📝 Commits (1)
372bac6glb_skinning: bound bufferView-less zero accessors and write JSON reports atomically📊 Changes
2 files changed (+78 additions, -8 deletions)
View changed files
📝
tests/test_glb_skinning.py(+43 -0)📝
tools/glb_skinning.py(+35 -8)📄 Description
Reopening my original upstream PR #7648 (previously verified on Linux and macOS M1 by
@slint6614-devand@azterixx), cleanly rebased ontomain:bufferView(_Reader.read): RejectsbufferView-less accessors withcount > MAX_ZERO_ACCESSOR_COUNT(1_000_000) asGlbSkinErrorinstead of attempting unbounded list allocation (OOM), and reuses a single immutable zero tuple per accessor ([(zero,) * components] * count).--jsondirectory guard (write_json,main): Writes--jsonreports viatempfile.mkstemp+file_mode.published_mode+replace_retry.replace(preserving permissions and leaving any existing report intact on write/replace failure, with read-only-safe temp cleanup), and refuses--json <directory>before reading the GLB with exit code 2.Verification
python3 -I tests/test_glb_skinning.py -v: 28/28 pass (both new tests fail/error againstmain).python3 -I scripts/check_no_game_data.py tools/glb_skinning.py tests/test_glb_skinning.py: clean.python3 -m compileall -q tools/glb_skinning.py tests/test_glb_skinning.py: clean.Claimed in the coordination issue as: OLD-7648 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135149126)
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.