RageModelDecoder: allow zero bounding-sphere radius (ASSET-69) #21
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/breadbbbb--rpf9-explorer!21
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/21/head"
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?
@JavierBlanco23 on GitHub · 2026-11-22 18:52 UTC · original
asset-69-allow-zero-radius→main· +1 −1 · 1 files · 1 commits · closed without mergingAllows
radius == 0(radius is >= 0 and < 1_000_000instead of> 0) inRageModelDecoder.LooksLikeDrawableHeader(Core/RageModelDecoder.cs:124).ValidBounds(min, max)already permits degeneratemin == maxbounds, and valid drawable dictionaries incore_restofworld.rpfcarry a bounding-sphere radius of0.Verification (
ItsNotRexed/LeonidaASSET-69, counts only, no game data)tools/rpf9dump/rpf9dump.csproj -c Release(0 warnings, 0 errors).core_restofworld.rpf(1,024 scan candidates), cache cleared before each run:radius > 0):Recovered = 873,NotRecovered = 151,Entries = 885,ok = 885,fail = 0,ModelDecodeFailures = {}.radius >= 0):Recovered = 884(+11),NotRecovered = 140(-11),Entries = 896(+11),ok = 896,fail = 0,ModelDecodeFailures = {}.@breadbbbb on GitHub · 2026-11-22 23:00 UTC · original · reviewed
This change is already present in current main at
e293917, through #12 and release 1.2. LooksLikeDrawableHeader already accepts finite radius zero (radius is >= 0 and < 1_000_000); #12 also added the preview-bounds fallback for empty declared bounds.There is no additional behavior here relative to the current target. Recommend closing this PR as superseded by #12 rather than merging the same fix again.
@JavierBlanco23 on GitHub · 2026-11-22 23:03 UTC · original
Thanks @breadbbbb! Closing as superseded by #12 /
e293917.Pull request closed