Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fast64_internal/z64/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ def ootGetObjectPath(isCustomExport: bool, exportPath: str, folderName: str, inc
def ootGetObjectHeaderPath(isCustomExport: bool, exportPath: str, folderName: str, include_extracted: bool) -> str:
extracted = bpy.context.scene.fast64.oot.get_extracted_path() if include_extracted else "."
if isCustomExport:
filepath = exportPath
# The custom .c references _WIDTH/_HEIGHT defines from its sibling .h, read that too.
root, ext = os.path.splitext(exportPath)
filepath = root + ".h" if ext == ".c" else exportPath
else:
filepath = os.path.join(
ootGetPath(exportPath, isCustomExport, f"{extracted}/assets/objects/", folderName, False, False),
Expand Down