Skip to content

[OoT] Fix colBounds computation when there are no collision triangles - #755

Open
Dragorn421 wants to merge 1 commit into
Fast-64:mainfrom
Dragorn421:fix_colBounds_without_collision_tris
Open

Dragorn421 wants to merge 1 commit into
Fast-64:mainfrom
Dragorn421:fix_colBounds_without_collision_tris

Conversation

@Dragorn421

Copy link
Copy Markdown
Contributor

Currently when exporting a map without any collision triangle (eg you disable collision for its only mesh) fast64 errors with an unhelpful message "IndexError: list index out of range"

This is due to colBounds staying [] rather than taking a default value (eg [[0,0,0], [0,0,0]] like in this PR) when there is no collision tri

I tested in game that a map with such bounds and 0 tris does load so it barely makes sense to allow it

Also fixed some wrong type hinting on colBounds

@Dragorn421 Dragorn421 added this to the v2.6.1 milestone Nov 2, 2026
@Dragorn421 Dragorn421 added bug Something isn't working oot Has to do with the Ocarina of Time 64 side labels Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working oot Has to do with the Ocarina of Time 64 side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant