From e7c42f43b45f65549510d9f83f85a42646dd4d0c Mon Sep 17 00:00:00 2001 From: Sauraen Date: Mon, 6 May 2024 18:43:01 -0700 Subject: [PATCH] Fixed bug with custom lights --- fast64_internal/utility.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fast64_internal/utility.py b/fast64_internal/utility.py index 212e83e2d..07bfe4154 100644 --- a/fast64_internal/utility.py +++ b/fast64_internal/utility.py @@ -1604,10 +1604,10 @@ def ootGetBaseOrCustomLight(prop, idx, toExport: bool, errIfMissing: bool): if light is None: if errIfMissing: raise PluginError("Error: Diffuse " + str(idx) + " light object not set in a scene lighting property.") - else: - col = light.color - lightObj = lightDataToObj(light) - dir = getObjDirectionVec(lightObj, toExport) + else: + col = light.color + lightObj = lightDataToObj(light) + dir = getObjDirectionVec(lightObj, toExport) col = mathutils.Vector(tuple(c for c in col)) if toExport: col, dir = exportColor(col), normToSigned8Vector(dir)