Default Value for Viewport Display Color's Alpha Wrong. #82514
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#82514
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.09
Blender Version
Broken: version: 2.92.0 Alpha, branch: master (modified), commit date: 2020-11-02 19:31, hash:
b9ec6c305c
Also tested on 2.83.8 and same problem.
Worked: It do not think this has ever worked
Short description of error
When reverting to the Default Value for Viewport Display Color the alpha gets down to 0.8 making the object semi transparent.
Exact steps for others to reproduce the error
Open up a new scene.
Select the cube.
Go to the materials tab.
Scroll down to "Viewport Display"
Right Click on "Color"
"Reset to Default Value"
Result: RGB values go back to the default, but Alpha goes to 0.8
Thank you so much !
Added subscriber: @LucianoMunoz
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @rjg
I can confirm this issue, this was already broken in 2.80.
Added subscriber: @lichtwerk
Added subscribers: @ideasman42, @mont29
We have two issues here. Booth rooting in the fact (hack) that RNA expose colors as an array of four floats, but DNA stores them in four separated contiguous variables.
MIN2(size_final, dp->dnasize)
), which will always fail in our hack-case, since the DNA-size is only of one float.RNA_def_property_float_sdna
(and trying to do otherwise breaks compilation), which means thatsize_final
will never be accurate in RNA_def_property_XXX_sdna`.So I think that for now:
RNA_def_property_array
).On the longer run, think we should forbid that hack altogether? It is both dirty and potentially unsafe, and relies on some assumptions regarding how data are actually laid out by the compiler in the DNA struct. If we want an arrays, either define and array in DNA, or use explicit accessors in RNA.
@ideasman42 this is your code originally, want to chime in?