Blender Git Loki

Git Commits -> Revision afab33e

Revision afab33e by Jeroen Bakker (master)
October 7, 2020, 15:15 (GMT)
UV/Image Editor: Overlay Popover

The overlay options in the image/uv editor is hidden in side panels and menus. Sometimes this panel is even hidden, while still useful.
The goal of this task is to introduce an overlay pop-over just like the overlay-popover of the 3d viewport.

Popover has
* UV Stretching (only available in the UV mode, when active object mode is a mesh and in OB_EDIT mode)
* Display As (only available in the UV mode, when active object mode is a mesh and in OB_EDIT mode)
* Show Modified (only available in the UV mode, when active object mode is a mesh and in OB_EDIT mode)
* Show UV Edges (including opacity slider; available UV, View, Paint, when active object mode is a mesh and in OB_EDIT mode)
* Udim tiles when no image is available.

Like the 3d viewport, there will be a editor toggle to enable/disable the overlays

For compatibility reasons the RNA properties are added to both the `SpaceImage.uv_editor` amd `SpaceImage.overlay`. On DNA level they are still stored in the SpaceImage. only new properties are added to the SpaceImageOverlay struct. During the next major release we could remove these options from `SpaceImage.uv_editor`. This should be noted in the Python section of release notes.

Reviewed By: Julian Eisel, Pablo Vazquez

Differential Revision: https://developer.blender.org/D8890

Commit Details:

Full Hash: afab33e0b97cc5e5278c3e8af5490b9583c3b95c
Parent Commit: fc76750
Lines Changed: +224, -86

10 Modified Paths:

/release/scripts/startup/bl_ui/space_image.py (+126, -64) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+14, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_edit_uv.c (+25, -17) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_private.h (+1, -0) (Diff)
/source/blender/draw/intern/draw_view.c (+7, -4) (Diff)
/source/blender/editors/space_image/space_image.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+12, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+36, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021