diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-06-05 15:21:06 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-06-05 15:21:26 +0300 |
commit | 6d143f3775d89607e5566f0aecfd290b72d96cc0 (patch) | |
tree | 0fc4fd45c6bc15dfe8659eaeeea4efd432e24510 /source | |
parent | f2da21e0523d06781912726ec5b214f71b0219f3 (diff) |
Fix T65389 Edit Mesh: Face dots are not shown in Xray mode
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index bb11ff384b5..0a63f303db0 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -624,7 +624,8 @@ static void EDIT_MESH_cache_init(void *vedata) DRW_shgroup_uniform_texture_ref(mix_shgrp, "sceneDepth", &dtxl->depth); } - bool show_face_dots = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_FACE_DOT) != 0; + bool show_face_dots = XRAY_FLAG_ENABLED(v3d) || + (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_FACE_DOT) != 0; if (g_data->do_faces == false && g_data->do_edges == false && (tsettings->selectmode & SCE_SELECT_FACE)) { |