UI: Fix polling in sequencer preview overlays #122638

Merged
Pablo Vazquez merged 1 commits from eliphaz/blender:vse-overlay-polling into main 2024-06-03 16:38:59 +02:00

When the sequencer overlays menu was restructured in #121591, the new
Sequencer panel types did not include polling, which means that they
also show up in the Preview-only view type. This PR polls them so that
overlays are properly divided again.

To accommodate the wide panel, this patch also organizes preview
overlays into a two-column structure like sequencer overlays.

With this change, popover menu in Preview is totally blank when choosing
display mode other than image (which was the behavior in previous
blender versions), so to make things less confusing for the user, make
these options inactive rather than hidden to indicate that changing them
will have no effect in the current mode.

For the Preview view type:

Before After
before-vse-preview-polling.png after-vse-preview-polling.png

Preview view type when a display mode other than Image Preview is chosen:

Before (4.1) After
4.1-preview-display-mode.png after-preview-display-mode.png

Notice the conspicuously missing popover for previous versions (e.g. 4.1).

And, for completeness, here's how the overlays popover looks in the combined view type Sequencer & Preview:
combined-vse-preview-polling.png

When the sequencer overlays menu was restructured in #121591, the new Sequencer panel types did not include polling, which means that they also show up in the Preview-only view type. This PR polls them so that overlays are properly divided again. To accommodate the wide panel, this patch also organizes preview overlays into a two-column structure like sequencer overlays. With this change, popover menu in Preview is totally blank when choosing display mode other than image (which was the behavior in previous blender versions), so to make things less confusing for the user, make these options inactive rather than hidden to indicate that changing them will have no effect in the current mode. For the **Preview** view type: |Before|After| |---|---| |![before-vse-preview-polling.png](/attachments/bb87fab9-7251-4459-a07d-75c79421cac2)|![after-vse-preview-polling.png](/attachments/25fffe5a-51cc-406f-8909-6b847220b034) **Preview** view type when a display mode other than Image Preview is chosen: |Before (4.1)|After| |---|---| |![4.1-preview-display-mode.png](/attachments/49734d63-cf2e-424b-8a81-2118531177f8)|![after-preview-display-mode.png](/attachments/0989ef50-7a6a-40d0-952a-5235d3fe55be)| Notice the conspicuously missing popover for previous versions (e.g. 4.1). And, for completeness, here's how the overlays popover looks in the combined view type Sequencer & Preview: ![combined-vse-preview-polling.png](/attachments/77aebbb7-7b04-4d22-8614-e29dd0fe711a)
John Kiril Swenson added 1 commit 2024-06-02 22:58:08 +02:00
When the sequencer overlays menu was restructured in #121591, the new
Sequencer panel types did not include polling, which means that they
also show up in the Preview-only view type. This PR polls them so that
overlays are properly divided again.

To accommodate the wide panel, this patch also organizes preview
overlays into a two-column structure like sequencer overlays.

With this change, popover menu in Preview is totally blank when choosing
display mode other than image (which was the behavior in previous
blender versions), so to make things less confusing for the user, make
these options inactive rather than hidden to indicate that changing them
will have no effect in the current mode.
John Kiril Swenson requested review from Pablo Vazquez 2024-06-02 22:58:30 +02:00
John Kiril Swenson requested review from Aras Pranckevicius 2024-06-02 22:58:38 +02:00
Aras Pranckevicius approved these changes 2024-06-03 08:52:08 +02:00
Aras Pranckevicius left a comment
Member

I know nothing about Python side of code, but from a casual look it feels okay. The PR description is excellent though, with very clear before/after screenshots!

I know nothing about Python side of code, but from a casual look it feels okay. The PR description is *excellent* though, with very clear before/after screenshots!
Pablo Vazquez approved these changes 2024-06-03 15:18:38 +02:00
Pablo Vazquez left a comment
Member

I second Aras, super nice and clear explanation. Thanks for working on it!

I second Aras, super nice and clear explanation. Thanks for working on it!
Pablo Vazquez merged commit b5389f32c8 into main 2024-06-03 16:38:59 +02:00
Pablo Vazquez deleted branch vse-overlay-polling 2024-06-03 16:39:03 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#122638
No description provided.