Skip to content

Commit

Permalink
[OoT] Fix issue where light settings is using the wrong name (#493)
Browse files Browse the repository at this point in the history
fix issue where lightsetting is using the wrong name
  • Loading branch information
Yanis002 authored Jan 17, 2025
1 parent 79d3bad commit 003bd49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fast64_internal/oot/exporter/scene/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def new(name: str, props: OOTSceneHeaderProperty):
else:
lightList = {str(i): light for i, light in enumerate(props.lightList)}

for name, lightProp in lightList.items():
for setting_name, lightProp in lightList.items():
try:
light1 = ootGetBaseOrCustomLight(lightProp, 0, True, True)
light2 = ootGetBaseOrCustomLight(lightProp, 1, True, True)
Expand All @@ -119,7 +119,7 @@ def new(name: str, props: OOTSceneHeaderProperty):
)
)
except Exception as exc:
raise PluginError(f"In light settings {name}: {exc}") from exc
raise PluginError(f"In light settings {setting_name}: {exc}") from exc
return SceneLighting(name, envLightMode, settings)

def getCmd(self):
Expand Down

0 comments on commit 003bd49

Please sign in to comment.