TexTools-Blender icon indicating copy to clipboard operation
TexTools-Blender copied to clipboard

'Curve' object has no attribute 'uv_layers' error, in op_island_align_world.py (35)

Open Elbriga14 opened this issue 11 months ago • 1 comments

This line is causing an error spamming our logs when applied to a curve (op_island_align_world.py, l.35)

if not bpy.context.object.data.uv_layers:
    return False

Error is: 'Curve' object has no attribute 'uv_layers'

Line probably should be

if not hasattr(bpy.context.object.data, 'uv_layers'):
    return False

Elbriga14 avatar Jan 08 '25 13:01 Elbriga14