Skip to content

[OoT] fix draw layer suffix always being present - #723

Merged
Dragorn421 merged 2 commits into
Fast-64:mainfrom
Dragorn421:fix_draw_layer_suffix_always
Aug 20, 2026
Merged

[OoT] fix draw layer suffix always being present#723
Dragorn421 merged 2 commits into
Fast-64:mainfrom
Dragorn421:fix_draw_layer_suffix_always

Conversation

@Dragorn421

Copy link
Copy Markdown
Contributor

Context

OoT DList exporter

Fast64 allows setting draw layers by material. This splits the mesh by material on export, between opaque/translucent/overlay draw layers, writing out different display lists.

It was reported last year #602 that fast64 however was writing those different display lists using the same name, obviously causing errors on compile due to the duplicate symbol name.

The issue was fixed in #605 by appending a "_drawlayer_dl" suffix to the written draw layer display list

However there have been complaints since then about this behavior since you can't name a single-draw-layer-using mesh properly (like gMyCubeDL) and have it be exported under that name, it would export as eg gMyCubeDL_opaque_dl

This PR

This PR makes the suffix be omitted when a mesh is composed of a single draw layer. When several draw layers are present, it uses the draw layer suffixes.

Testing

I tested:

  • DL export with a single draw layer
  • DL export with two draw layers
  • deku tree import-export
  • gerudo skeleton import-export
  • epona skinskeleton import-export

@Dragorn421 Dragorn421 added the oot Has to do with the Ocarina of Time 64 side label Aug 17, 2026
Comment thread fast64_internal/z64/f3d/operators.py
@Trueffeloot

Copy link
Copy Markdown

DL exporting works as it should. I didn't try the other things like importing and exporting a scene though because I don't know how these files should be looking afterwards.

@Dragorn421 Dragorn421 added the merge soon Will be merged in a few days at most if nothing else comes up label Aug 17, 2026
@Dragorn421
Dragorn421 merged commit 9d46af5 into Fast-64:main Aug 20, 2026
1 check passed
@Dragorn421
Dragorn421 deleted the fix_draw_layer_suffix_always branch August 20, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge soon Will be merged in a few days at most if nothing else comes up oot Has to do with the Ocarina of Time 64 side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants