Wireframe/Xray: Make Xray option local to wireframe mode
authorClément Foucault <foucault.clem@gmail.com>
Wed, 26 Sep 2018 18:31:14 +0000 (20:31 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 26 Sep 2018 18:31:20 +0000 (20:31 +0200)
commit5732d9e1dcc08d284d7f9f56be22ad901fd53f22
treeb95990cabfe96e39b8a14883c6166e10bd9918fb
parentebd234eee5d7fdae6d7a5efa56171f6ab773a9e1
Wireframe/Xray: Make Xray option local to wireframe mode

This commit make the Xray option for the wireframe different from the other
shading mode. This makes it possible to rapidly switch between wireframe +
Xray and Solid mode without Xray.

Xray alpha is also decoupled.

Both variables are duplicated and exposed separately through RNA.
14 files changed:
release/scripts/startup/bl_ui/space_view3d.py
source/blender/blenkernel/intern/screen.c
source/blender/blenloader/intern/versioning_280.c
source/blender/draw/engines/workbench/workbench_forward.c
source/blender/draw/engines/workbench/workbench_render.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/object_mode.c
source/blender/draw/modes/overlay_mode.c
source/blender/editors/include/ED_view3d.h
source/blender/editors/space_view3d/view3d_view.c
source/blender/editors/transform/transform_snap_object.c
source/blender/makesdna/DNA_view3d_types.h
source/blender/makesrna/intern/rna_space.c