Commit: 6d143f3775d89607e5566f0aecfd290b72d96cc0
Author: Clément Foucault
Date:   Wed Jun 5 14:21:06 2019 +0200
Branches: master
https://developer.blender.org/rB6d143f3775d89607e5566f0aecfd290b72d96cc0

Fix T65389 Edit Mesh: Face dots are not shown in Xray mode

===================================================================

M       source/blender/draw/modes/edit_mesh_mode.c

===================================================================

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)) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to