Weight Paint Mode: 'Limit Selection to Visible' doesn't respect Wireframe Shading
Closed, InvalidPublic

Description

System Information
OS: Windows 7 64bit
GPU: Nvidia GTX 970

Blender Version
Broken: Blender 2.79.1 Hash: 4a1762f
Broken: Blender 2.79.1 Hash: a8fbe99
Broken: Blender 2.79.1 Hash: 535e836
Broken: Blender 2.79.1 Hash: ac28a4f

Short description of error
'Limit Selection to Visible' does not respect Wireframe Shading while in Weight Paint mode.
Even though Wireframe Shading is active, you can't see or select hidden vertices while 'Limit Selection to Visible' is enabled.
'Limit Selection to Visible' option should be completely disabled while Wireframe Shading is active.

Exact steps for others to reproduce the error
-Cycles Render-

  1. Add a Cube
  2. Select Cube object and switch to Weight Paint mode
  3. Enable 'Vertex Selection Masking for Painting'
  4. Enable 'Limit Selection to Visible'
  5. Switch Viewport Shading to Wireframe
  6. Hidden vertices on the Cube can't be seen or selected

Details

Type
Bug

After your resolution for https://developer.blender.org/T51761 , hope you don't mind taking a look at this.

Hope someone can test this. Blend file included.

The current functionality is working as intended.

Wire frame is handled differently in weight paint mode - it shows wireframe but still uses depth buffer, which can be toggled.

The advantage with this is you have a shadeless view that shows wire topology - optionally with/without occluded vertices visible.