mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1084] anim tools: use shared report path guard #1119
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#1119
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/1084
Author: @j-weiner
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/anim-clips-shared-report-path📝 Commits (2)
16ab092refactor: use shared report path guard in anim_clipseac7353fix(anim_glb): use shared report path guard📊 Changes
3 files changed (+14 additions, -17 deletions)
View changed files
📝
tests/test_anim_glb.py(+9 -0)📝
tools/anim_clips.py(+2 -11)📝
tools/anim_glb.py(+3 -6)📄 Description
Claimed in the coordination issue as: ANIM-CLIPS-SHARED-REPORT-PATH
What and why
tools/anim_clips.pyandtools/anim_glb.pyshared a privatesame_output_pathhelper across modules. This PR moves the guard to the commontools/report_paths.py:same_report_pathimplementation and updates both callers. Updatinganim_glb.pyis necessary because it referencedanim_clips.same_output_path; removing that helper without updating the caller caused anAttributeErrorwhen output/input checks ran. A regression covers identical, not-yet-created GLB and report paths, which must be refused before either path is created.Tested
python3 -I tests/test_anim_glb.py— 37 passed.python3 -I tests/test_anim_clips.py— 53 passed.python3 -I tests/test_report_paths.py— 22 tests, 1 skipped.python3 -I tests/test_text_write_line_endings.py— 3 passed.python3 -I tools/anim_clips.py --helpandpython3 -I tools/anim_glb.py --help— passed.python3 -I scripts/check_no_game_data.py tools/anim_clips.py tools/anim_glb.py tests/test_anim_glb.py— clean.git diff --check— passed.GPUs tested: n/a (CPU-only synthetic tests; no game files used).
AI-assisted: yes.
Checklist
mainand merges cleanly.anim_glb.pychange fixes a missed caller of the same shared-guard migration.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.