Skip to content

Commit

Permalink
[SM64] Fix Fast-64#421 - Custom path DL/Geolayout exports (Fast-64#422)
Browse files Browse the repository at this point in the history
* [SM64] Fix Custom path DL/Geolayout imports

* Lilaa3 Suggestion
  • Loading branch information
SonicTheHedgeHog64 authored Aug 16, 2024
1 parent 672eda3 commit 5a96c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fast64_internal/sm64/sm64_f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ def sm64ExportF3DtoC(
scrollName = "actor_dl_" + name
elif headerType == "Level":
scrollName = levelName + "_level_dl_" + name
elif headerType == "Custom":
scrollName = "dl_" + name

gfxFormatter = SM64GfxFormatter(ScrollMethod.Vertex)
exportData = fModel.to_c(TextureExportSettings(texSeparate, savePNG, texDir, modelDirPath), gfxFormatter)
Expand Down
2 changes: 2 additions & 0 deletions fast64_internal/sm64/sm64_geolayout_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ def saveGeolayoutC(
scrollName = "actor_geo_" + dirName
elif headerType == "Level":
scrollName = levelName + "_level_geo_" + dirName
elif headerType == "Custom":
scrollName = "geo_" + dirName

gfxFormatter = SM64GfxFormatter(ScrollMethod.Vertex)
if not customExport and headerType == "Level":
Expand Down

0 comments on commit 5a96c85

Please sign in to comment.