Page MenuHome

UV/Image Editor: Overlay Popover
Needs ReviewPublic

Authored by Jeroen Bakker (jbakker) on Mon, Sep 14, 3:16 PM.

Details

Reviewers
None
Group Reviewers
User Interface
Maniphest Tasks
T80767: UV Image Editor: Overlay Popover
Summary

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.

See T80767: UV Image Editor: Overlay Popover

Diff Detail

Repository
rB Blender
Branch
arcpatch-D8890 (branched from master)
Build Status
Buildable 10299
Build 10299: arc lint + arc unit

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Mon, Sep 14, 3:16 PM
Jeroen Bakker (jbakker) created this revision.
source/blender/makesdna/DNA_space_types.h
1168

Revert changes in this line

source/blender/makesrna/intern/rna_space.c
4542

Add other properties here, but keep the original properties for script compatibility.

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Mon, Sep 14, 3:25 PM
release/scripts/startup/bl_ui/space_image.py
1587

Feedback is that the popover is to wide. Perhaps we should remove this line as it was copied from the 3d view

source/blender/makesdna/DNA_space_types.h
1042

We might want to move the other overlay options here.
Make sure the old RNA maps to this struct. This adds breakage opening b291 files on older files but that is only cosmetic.

  • Make the popup panel smaller
  • Reverted unneeded change
  • RNA migration draw options to SpaceImageOverlay
  • Moved UDIM grid to overlay
source/blender/makesdna/DNA_space_types.h
1042

Moving other options breaks older files, so we should move them during the next major release (3.0). Any new options can directly be added.

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Wed, Sep 16, 1:27 PM
Jeroen Bakker (jbakker) added projects: BF Blender (2.91), Restricted Project.
Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)Wed, Sep 16, 1:30 PM
  • Hide meta data and sample line when overlays are disabled
  • Hide meta data and sample line when overlays are disabled
  • Tweaked UI labels