Maniphest T93477

Viewport X-Ray is influencing snapping even in material mode
Closed, Resolved

Assigned To
Germano Cavalcante (mano-wii)
Authored By
Dalai Felinto (dfelinto)
Nov 29 2021, 3:26 PM
Tags
  • BF Blender
  • Modeling
Subscribers
Aiden (Aiden_inman)
Dalai Felinto (dfelinto)

Description

Blender Version
Broken: version: 3.0.0 Release Candidate, branch: master, commit date: 2021-11-29 10:04, hash: rBb31250feba4c
Worked: Not sure how to reproduce this without the asset browser in 3.0.

Short description of error
In material and rendered modes the X-Ray option is still affecting the snapping, even though it shows as disabled in the UI.

Exact steps for others to reproduce the error
Try to drag the cube from the asset browser into the scene. It doesn't snap to the floor properly.

Revisions and Commits

rB Blender
D13410
D13410

Event Timeline

Dalai Felinto (dfelinto) created this task.Nov 29 2021, 3:26 PM
Dalai Felinto (dfelinto) added a project: EEVEE & Viewport.

Note: There can be a separate discussion as to which fallback to have for X-Ray mode. But this is orthogonal to this bug. The main issue here is that an option that is disabled in the UI is influencing Blender in any way (and it shouldn't).

Aiden (Aiden_inman) added a subscriber: Aiden (Aiden_inman).Nov 29 2021, 3:28 PM
Dalai Felinto (dfelinto) assigned this task to Germano Cavalcante (mano-wii).Nov 29 2021, 3:41 PM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Nov 29 2021, 3:55 PM
Germano Cavalcante (mano-wii) edited projects, added Modeling; removed EEVEE & Viewport.

I can confirm the problem.
The general occlusion test ()ignoring faces in x-ray) is intended only for snap in edit mode (for Bmesh).
The occlusion test in other cases only checks whether the "viewport display" of the object is wire or boundbox.

The dragdrop snap should be done to final geometry and not bmesh.

Germano Cavalcante (mano-wii) closed this task as Resolved by committing rB251c0175349d: Fix T93477: Viewport X-Ray is influencing snapping even in material mode.Nov 30 2021, 3:05 PM
Germano Cavalcante (mano-wii) added a commit: rB251c0175349d: Fix T93477: Viewport X-Ray is influencing snapping even in material mode.
Philipp Oeser (lichtwerk) added a commit: rB9d6680e7f9b7: Fix T93477: Viewport X-Ray is influencing snapping even in material mode.Jan 11 2022, 11:31 AM