Skip to content

Commit

Permalink
Fixed a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
majikdev committed Oct 25, 2022
1 parent b9be29f commit 3314b0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion precise_uv_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Precise UV Export",
"description": "Export pixel-perfect UV layouts as images",
"author": "majik",
"version": (1, 1),
"version": (1, 1, 0),
"blender": (3, 0, 0),
"category": "Import-Export"
}
Expand Down Expand Up @@ -204,6 +204,7 @@ def get_mesh_triangles(meshes):
bpy.ops.uv.select_linked()
bpy.ops.object.mode_set(mode="OBJECT")

layer = mesh.uv_layers.active.data
island = [uv for uv in layer if uv.select]

if island:
Expand Down

0 comments on commit 3314b0f

Please sign in to comment.