Page MenuHome

X-ray toggle button in weight-paint mode is ignored (honors edit-mode setting instead)
Confirmed, NormalPublic

Description

System Information
Operating system: Linux
Graphics card: Intel

Blender Version
Broken: 2.91.0-a509e79a4c77-linux64
Worked: 2.80 - Xray was not changed when switching modes there

Short description of error
When in weight-paint mode, with select vertices enabled, the "Toggle X-ray" button in the upper right corner is ignored, does not allow to select vertices through the object (on both sides). But instead, if you switch to the edit mode, enable the x-ray mode, and then switch back to the weight-paint mode, then the vertex selection through object is turned on correctly. So oddly enough, the weight-paint mode x-ray is controlled from edit mode, ignoring its own x-ray toggle button.

Steps to reproduce

  1. Open file
  2. Toggle X-ray mode

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Oct 15 2020, 11:54 PM

I can't reproduce this. At least I think so. Having steps to follow and example file would be helpful here.

I just duplicated cube and move it so vertices are ocluded
Switched to weight paint
Enabled vertex selection
Enable X-ray
Selected all vertices

Also can't redo this, please give exact steps.

Roman (rwman) changed the task status from Needs Information from User to Needs Triage.Oct 16 2020, 3:08 PM

Ah. The important detail is that object should have armature modifier, and you first select armature, then shift-select the mesh object, and then enter weight paint mode. (so that you can ctrl-click on a bone to paint its weight over the mesh)
Here is the blend file demonstrating the bug, with a cylinder and armature:

For a second I thought this report was about something else that I encountered. Now I don't think so anymore, but just in case it is related, I made a report for that here: T81843. If it turns out to be the same issue, feel free to merge mine back in here.

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Oct 20 2020, 3:08 AM
Richard Antalik (ISS) updated the task description. (Show Details)

For a second I thought this report was about something else that I encountered. Now I don't think so anymore, but just in case it is related, I made a report for that here: T81843. If it turns out to be the same issue, feel free to merge mine back in here.

I think, these are different issues

The way I see it is: in Weight Paint mode the Toggle X-Ray button still doesn't show hidden vertices. When used in Edit mode the hidden vertices appear like expected, but in Weight Paint mode they don't.

Here's a comparison image, the Toggle X-Ray, in Weight Paint mode, from Blender 2.79 vs Blender 2.91 (at the bottom of the image it's the 2.91 Edit mode for reference, which is what you expect would happen in Weight Paint mode):