Fix #119397: X-Ray not available in Rendered mode when using Workbench #119769

Closed
Fermin-Lozano wants to merge 3 commits from Fermin-Lozano/blender:fix-#119397 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

Description of the problem:
X-Ray is not available in Rendered mode when using Workbench, when it could have it as it always available in Solid mode.

Proposed solution:
Whenever there are checks to see if X-Ray is enabled, there are usually conditions depending of the shading mode (i.e. Solid, Wireframe, Rendered...) and X-Ray is disabled the moment Rendered mode is active. The proposed solution adds additional conditions that make the X-Ray feature always available when using Workbench.

Description of the problem: X-Ray is not available in Rendered mode when using Workbench, when it could have it as it always available in Solid mode. Proposed solution: Whenever there are checks to see if X-Ray is enabled, there are usually conditions depending of the shading mode (i.e. Solid, Wireframe, Rendered...) and X-Ray is disabled the moment Rendered mode is active. The proposed solution adds additional conditions that make the X-Ray feature always available when using Workbench.
Fermin-Lozano added 3 commits 2024-03-22 00:18:24 +01:00
Fermin-Lozano changed title from WIP: Fix #119397: X-Ray not available in Rendered mode when using Workbench to Fix #119397: X-Ray not available in Rendered mode when using Workbench 2024-03-22 00:30:26 +01:00
Iliya Katushenock added this to the User Interface project 2024-03-22 12:39:49 +01:00
Iliya Katushenock added the
Interest
Workbench
label 2024-03-22 12:40:16 +01:00
Fermin-Lozano requested review from Julian Eisel 2024-03-23 12:10:22 +01:00
Fermin-Lozano requested review from Clément Foucault 2024-03-23 12:14:01 +01:00
Member

Hi @Fermin-Lozano and thanks for the patch. I do believe this fix first needs to have a discussion about how to solve the issue as the user expectation might be different.

You proposal adds some confusion to the user as it introduces 2 distict ways to enable/disable xray mode in rendered mode

  • XRay button in viewport
  • XRay option in render panel

Which of those ways have now more priority over the other. And is this what the user always expect. The current solution doesn't have this confusion by disabling the option in the 3d viewport.

Looking into the issue of the original report I think that using 2 3d viewports both in solid mode with different settings would have solved it.

If the user wants to have a single 3d viewport and just an option to switch between 2 different sets of draw options, we should implement presets for 3d viewport drawing mode. (which was always the plan, but it never got priority)

See scripts/presets folder and #116223 how to implement presets. Might need some trickery to add this clearly in the UI though.

Hi @Fermin-Lozano and thanks for the patch. I do believe this fix first needs to have a discussion about how to solve the issue as the user expectation might be different. You proposal adds some confusion to the user as it introduces 2 distict ways to enable/disable xray mode in rendered mode - XRay button in viewport - XRay option in render panel Which of those ways have now more priority over the other. And is this what the user always expect. The current solution doesn't have this confusion by disabling the option in the 3d viewport. Looking into the issue of the original report I think that using 2 3d viewports both in solid mode with different settings would have solved it. If the user wants to have a single 3d viewport and just an option to switch between 2 different sets of draw options, we should implement presets for 3d viewport drawing mode. (which was always the plan, but it never got priority) See `scripts/presets` folder and #116223 how to implement presets. Might need some trickery to add this clearly in the UI though.
Author
Contributor

Thanks for the reply @Jeroen-Bakker !. When I first saw the issue I though this could easily happen, but it passed the triage stage so I decided to give it a try.

If the conclusion is that it's better as it is right now, this PR and its associated issue can be closed.

Thanks for the reply @Jeroen-Bakker !. When I first saw the issue I though this could easily happen, but it passed the triage stage so I decided to give it a try. If the conclusion is that it's better as it is right now, this PR and its associated issue can be closed.
Fermin-Lozano closed this pull request 2024-04-21 15:39:36 +02:00

Pull request closed

Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
2 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#119769
No description provided.