Skip to content

UV Manipulation is broken in Blender 5.0 #268

Description

@Aybex

Hi,

With the update to the UV Editor in Blender 5.0, almost none of the UV Manipulation tools of Textools work anymore.

Python: Traceback (most recent call last): File "C:\Users\Ayoub\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\TexTools-Blender-master\op_rectify.py", line 37, in execute utilities_uv.multi_object_loop(rectify, self, context) File "C:\Users\Ayoub\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\TexTools-Blender-master\utilities_uv.py", line 27, in multi_object_loop func(*args, **kwargs) File "C:\Users\Ayoub\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\TexTools-Blender-master\op_rectify.py", line 49, in rectify faces_loops = utilities_uv.selection_store(bm, uv_layers, return_selected_faces_loops=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Ayoub\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\TexTools-Blender-master\utilities_uv.py", line 125, in selection_store if loop[uv_layers].select: ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'BMLoopUV' object has no attribute 'select'

Looking at the Blender API docs The bmesh.types.BMLoopUV.Selec have been removed in the 5.0 API

Change confirmed in : Release Notes article

The UV selection is now shared between all UV maps.

Added:

The following UV attributes have been added.
    .uv_select_vert (face-corner).
    .uv_select_edge (face-edge).
    .uv_select_face (face).

BMesh attributes:
    bmesh.types.BMLoop.uv_select_vert.
    bmesh.types.BMLoop.uv_select_edge.
    bmesh.types.BMFace.uv_select.
    bmesh.types.BMesh.uv_select_sync_valid.

BMesh methods:
    bmesh.types.BMLoop.uv_select_vert_set().
    bmesh.types.BMLoop.uv_select_edge_set().
    bmesh.types.BMFace.uv_select_set().
    bmesh.types.BMesh.uv_select_flush_mode().
    bmesh.types.BMesh.uv_select_flush().
    bmesh.types.BMesh.uv_select_flush_shared().
    bmesh.types.BMesh.uv_select_sync_from_mesh().
    [bmesh.types](https://docs.blender.org/api/5.0/bmesh.types.html).BMesh.uv_select_sync_to_mesh().
    bmesh.types.BMesh.uv_select_foreach_set().
    bmesh.types.BMesh.uv_select_foreach_set_from_mesh().

See the bmesh.types API docs for details

Removed:

The following UV selection properties have been removed:
    bpy.types.MeshUVLoopLayer.vertex_selection.
    bpy.types.MeshUVLoopLayer.edge_selection.
    bmesh.types.BMLoopUV.select.
    bmesh.types.BMLoopUV.select_edge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions