Skip to content

Commit

Permalink
Importer: Fix logic error with crash evade
Browse files Browse the repository at this point in the history
  • Loading branch information
loonaticx committed Nov 22, 2023
1 parent ae3cfb1 commit 8e4f7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ def add_polygon(self, context, prim, vpool):
# Reference those loops in the polygon.
poly.loop_start = loop_offset
# Newer versions of Blender have changed loop_total to be readonly, resulting in a crash.
if bpy.app.version > (3, 50):
if bpy.app.version < (3, 6):
poly.loop_total = len(prim.indices)

# Assign the highest priority texture that uses a given UV set to
Expand Down

0 comments on commit 8e4f7dc

Please sign in to comment.