Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-09-21 16:44:04 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-21 16:45:03 +0300
commit37fea2c0f0bb57b91595784af57d89259e9301ba (patch)
treed947392b26f4a3f23019a66e101ed6105f63eb7b /source/blender/editors/include/ED_view3d.h
parent3523958de9f129e260a8a31260ef9459a10cc3cc (diff)
Edit Mode: Merge Xray and "Limit selection to visible" options behaviour
We now treat Xray as being the mode where Limit selection to visible is off. If Xray is OFF, Limit selection to visible is considered ON. To allow 'see through wires' with solid shading (not Xray shading) we still draw solid shading if Xray is ON with Xray Alpha set to 1.0.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r--source/blender/editors/include/ED_view3d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index 30daaad3c2c..605c9bc3d97 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -536,7 +536,7 @@ void ED_view3d_stop_render_preview(struct wmWindowManager *wm, struct ARegion *a
void ED_view3d_shade_update(struct Main *bmain, struct View3D *v3d, struct ScrArea *sa);
#define V3D_IS_ZBUF(v3d) \
- (((v3d)->flag & V3D_ZBUF_SELECT) && ((v3d)->shading.type > OB_WIRE))
+ (((v3d)->shading.flag & V3D_SHADING_XRAY) == 0)
void ED_view3d_id_remap(struct View3D *v3d, const struct ID *old_id, struct ID *new_id);