Skip to content

Commit

Permalink
Fixed incorrect version checking code that conditionally applied vert…
Browse files Browse the repository at this point in the history
…ex color gamma correction (Fast-64#292)

Fixes vertex colors in blender versions that were failing this check when they shouldn't.
  • Loading branch information
kurethedead authored Jan 14, 2024
1 parent 3eed0ee commit 37aacff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast64_internal/f3d/f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 37aacff

Please sign in to comment.