Fix #105460: set default backwire opacity for 3D view overlay #107755

Closed
Marino Toscano wants to merge 1 commits from merotosc/blender:bugfix/default_xray_opacity into main

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

The backwire opacity used for xray was not set in the defaults.
As result the opacity was always 0.0 when creating a new View3D space.
I added the backwire_opacity to the view3d defaults file and set it to 0.5 like the primary View3D.

Images:
Above the default view and below the new view created switching the timeline to a 3D Viewport.

Before After
Eeveexray-eevee-before.png Eeveexray-eevee-after.png
Cyclesxray-cycles-before.png Cyclesxray-cycles-after.png

Issue: #105460

The backwire opacity used for xray was not set in the defaults. As result the opacity was always 0.0 when creating a new View3D space. I added the `backwire_opacity` to the view3d defaults file and set it to 0.5 like the primary View3D. Images: Above the default view and below the new view created switching the timeline to a 3D Viewport. |Before|After| |-|-| |Eevee![xray-eevee-before.png](/attachments/4f34b74a-5474-44a2-a2f4-143d499b6c21)|Eevee![xray-eevee-after.png](/attachments/c3be471c-5ec9-4992-8b67-2dcf5252d153)| |Cycles![xray-cycles-before.png](/attachments/77aa6511-c5a1-47e7-b25a-064e19b5b1a9)|Cycles![xray-cycles-after.png](/attachments/b4a6227d-97e6-4e4d-96f5-110b19fbc048)| Issue: #105460
Marino Toscano force-pushed bugfix/default_xray_opacity from 64840e80db to c4135ddedc 2023-05-08 21:07:22 +02:00 Compare
Iliya Katushenock added this to the EEVEE & Viewport project 2023-05-08 21:08:37 +02:00
Iliya Katushenock added the
Interest
Modeling
label 2023-05-08 21:08:46 +02:00

For a quick fix, this looks good.
But since we can't edit "backwire_opacity" from the UI, it might be better to remove this member from View3DOverlay.

Investigating where it was added, I went back to b365cc017a where it appears that the "backwire_opacity" in the UI was missing (Cc @brecht).

Considering how much this problem went unnoticed, I vote to remove.

For a quick fix, this looks good. But since we can't edit "backwire_opacity" from the UI, it might be better to remove this member from `View3DOverlay`. Investigating where it was added, I went back to b365cc017a where it appears that the "backwire_opacity" in the UI was missing (Cc @brecht). Considering how much this problem went unnoticed, I vote to remove.

Removing seems reasonable if it's really nowhere in the UI.

If we do keep it, we should probably reset it to 0.5 in existing files.

Removing seems reasonable if it's really nowhere in the UI. If we do keep it, we should probably reset it to 0.5 in existing files.

The alternative solution to remove was committed 8460b67ef8

The alternative solution to remove was committed 8460b67ef85c026f9594d372973d617a77d3f1f7

Pull request closed

Sign in to join this conversation.
No reviewers
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 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#107755
No description provided.