Skip to content

Commit

Permalink
move the global variable earlier in the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis002 committed Apr 21, 2024
1 parent 70599b3 commit d7ae947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast64_internal/oot/scene/exporter/to_c/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def to_c(self):
def editSpecFile(
isScene: bool, exportInfo: ExportInfo, hasSceneTex: bool, hasSceneCS: bool, roomTotal: int, csTotal: int
):
global buildDirectory

# get the spec's data
specFile = SpecFile(os.path.join(exportInfo.exportPath, "spec"))

Expand All @@ -214,7 +216,6 @@ def editSpecFile(
specFile.remove(entry.segmentName)

if isScene:
global buildDirectory
assert buildDirectory is not None
isSingleFile = bpy.context.scene.ootSceneExportSettings.singleFile
includeDir = f"{buildDirectory}/"
Expand Down

0 comments on commit d7ae947

Please sign in to comment.