From 37aacff07adb1be9bdfb6fd71855bf595d94e267 Mon Sep 17 00:00:00 2001 From: kurethedead <59840896+kurethedead@users.noreply.github.com> Date: Sun, 14 Jan 2024 01:02:17 -0800 Subject: [PATCH] Fixed incorrect version checking code that conditionally applied vertex color gamma correction (#292) Fixes vertex colors in blender versions that were failing this check when they shouldn't. --- fast64_internal/f3d/f3d_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast64_internal/f3d/f3d_writer.py b/fast64_internal/f3d/f3d_writer.py index 056d4131b..f654b33b3 100644 --- a/fast64_internal/f3d/f3d_writer.py +++ b/fast64_internal/f3d/f3d_writer.py @@ -1111,7 +1111,7 @@ def getLoopNormal(loop: bpy.types.MeshLoop) -> Vector: @functools.lru_cache(0) def is3_2_or_above(): - return bpy.app.version[0] >= 3 and bpy.app.version[1] >= 2 + return bpy.app.version >= (3, 2, 0) def getLoopColor(loop: bpy.types.MeshLoop, mesh: bpy.types.Mesh) -> Vector: