This patch adds edge selection support for UV editing (refer T76545).
Developed as a part of GSoC 2021 project - UV Editor Improvements.
Previously, edge selection simply selected vertices, which resulted ins in the UV editor always flushed down to vertices
other edges between selected vertices to be also selectedand this caused multiple issues such as T76343, T78757 and T26676.
Selections in the UV editor always flushed down to vertices and thisThis patch fixes that by adding edge selection support for all UV
caused multiple issues such as T76343, T78757operators and T26676.
This patch fixes this by adding edgeadding support for flushing selection support for all UVs between vertices
operators and flushing selections between vertices and edges.
Changing UV select modes is now done using a separate operator, whichUpdating UV select modes is now done using a separate
operator, which also handles select mode flushing and undo for UV select modes.
select modes. Drawing of selectededges (in UV edgese mode) is also updated to match the edit-mesh
the edit-mesh display in the 3D viewport.
Notes on technical changes made inwith this patch:
* Restored the MLOOPUV_EDGESEL flag (removed in rB9fa29fe7652a).
* Added support for flushing selection between vertices and edges* MLOOPUV_EDGESEL flag is restored (was removed in rB9fa29fe7652a).
* Added edge s* Support for UVflushing selection checksn between vertices and edges.
* Restored the BMLoopUV.select_edge boolean in the Python API.
* New operator to handle updatinge UV select modes and flushing.
* UV select mode is now part of editmesh undo.
TODOs added with this patch:
* Edge support for shortest path operator (currently uses vertex path logic).
* Change default theme color instead of reducing contrast with edge-select.
* Proper UV element selections for Reveal Hidden operator.