Regression: Bones drawn as stick are invisible #115930
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#115930
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.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.99
Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash:
9be62e85b727
Worked: 3.6.5
Short description of error
Bones drawn as Stick are invisible when unselected (see Gif attached)
Exact steps for others to reproduce the error
Seems to be related to this, but it is persisting:
#115434
Bones drawn as stick are invisibleto Regression: Bones drawn as stick are invisibleSeems fixed in 4.1
From what I can see,
c9093332e0
has not been backported.@nathanvegdahl, @Jeroen-Bakker is backporting that commit into 4.0 viable?
It is possible, but it needs to be done manually due to the file versioning code.
The bug is persisting in 4.1
Please see files attached
Also seeing this same behavior in 4.11. Stick bones are only visible when selected. Displaying as "Wire" still works in the meantime, but Sticks are easier to work with.
Yes I see.
When saving the file in Blender 4.0 and then opening it in Blender 4.1 will fix the issue.
I think that the versioning code isn't running for this file or that there is still a operation that doesn't set the correct alpha value.
@nathanvegdahl can you have a look at it?
I tagged the animation module as its is data related.
Yeah, I'll take a look.
@LucasVeber Can you provide steps for how you created that file? For example, what Blender version(s) did you use, and the steps you took to create the armature and set the bone colors?
@nathanvegdahl Yes sure, thanks for looking into it.
This file was initially saved with Blender 2.93.
Color groups were defined with scripts, such as:
Color property:
bpy.types.Scene.grp_color= FloatVectorProperty(name="Color", subtype="COLOR_GAMMA", default=(0.602, 0.667, 1.0), min=0.0, max=1.0 )
However, if these backward compat issues are too much of a problem, I've just found a workaround.
I open the file under Blender 2.93 and run this script that switch the "color_set" to the first theme, to reset colors data, then switch back to Custom
Seems to fix it for now.
I've done some investigation:
At this point I'm at a bit of a loss. Repro steps for how to create a blend file that exhibits this issue would be extremely helpful (@LucasVeber @Micah-Ganske ?). And if anyone else has ideas of what to try, I'm all ears.
I will continue investigating as I have time.
Ah, thanks @LucasVeber!
No problems!
In the given file, the 2.93 armature was imported directly into the Blender 4 file, using python too.
I guess this is why the automatic versioning modifications were not applied.
I'd appreciate to know if it can be fixed anyway. For files that have been already saved in Blender 4. Is there a way to set this alpha value to 1 via python, or something? I cannot seem to find any.
Ah, interesting! I didn't realize bones even had alpha values. Luckily, or maybe unluckily for bug fixing, the issue suddenly resolved itself on my end. The rig in question was generated with auto-rig pro though, so the add-on was doing it's own thing in the background each time I edited the reference skeleton. Thank you all!
@nathanvegdahl isn't there a way to modify the source code so that the Stick display mode always draws the alpha channel with 255 value, like other display modes? B-Bone, Envelope, Octahedral and Wire are fine... Stick is the only one that has this alpha channel bug.
@LucasVeber Yeah, I think that's the best fix here. There was other code that was also modified recently to work that way, that fixed similar drawing issues elsewhere. I'll look into that soon.
Well, conceptually they don't, which is why that's not exposed in the UI. The colors are just incidentally stored as four bytes internally for some reason.
Amazing, thanks @nathanvegdahl !