Page MenuHome

UV: bpy_extras.mesh_utils.mesh_linked_uv_islands raises error in edit mode
ClosedPublic

Authored by Chris Blackbourn (chrisbblend) on Aug 25 2022, 10:39 AM.

Diff Detail

Repository
rB Blender

Event Timeline

Chris Blackbourn (chrisbblend) requested review of this revision.Aug 25 2022, 10:39 AM
Chris Blackbourn (chrisbblend) created this revision.
Chris Blackbourn (chrisbblend) retitled this revision from UV: bpy_extras.mesh_utils.mesh_linked_uv_islands raise error in edit mode to UV: bpy_extras.mesh_utils.mesh_linked_uv_islands raises error in edit mode.
Campbell Barton (campbellbarton) added inline comments.
release/scripts/modules/bpy_extras/mesh_utils.py
24

Check there are polygons first, otherwise this would happen for empty meshes (which will return an empty list, but shouldn't error).

24

Should include a short commenting noting the layer data is always empty in edit-mode.

This revision is now accepted and ready to land.Aug 25 2022, 1:50 PM
Chris Blackbourn (chrisbblend) marked an inline comment as done.

add comments

Campbell Barton (campbellbarton) added inline comments.
release/scripts/modules/bpy_extras/mesh_utils.py
27