diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-28 14:00:40 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-28 16:09:57 +0300 |
commit | dee5c1aa409cb9d3f80f7b8422b073e67a469cfc (patch) | |
tree | c5ce182004300c810e24c02ba63ac3e49303186a /source/blender/draw/modes | |
parent | 94370e23e975397e5656026f25d936221cf2f1ec (diff) |
MeshAnalysis: Disable when XRay is turned on
When XRay is turned on the mesh analysis did not draw correct. This
change won't draw the mesh analysis overlay when xray is turned on.
In terms of giving the user a visual feedback of this limitation we
render the overlay options inactive.
Reviewed By: brecht, fclem
Maniphest Tasks: T65225
Differential Revision: https://developer.blender.org/D4965
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index 081590bb003..afe735ec7f5 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -701,7 +701,7 @@ static void EDIT_MESH_cache_populate(void *vedata, Object *ob) DRW_shgroup_call(g_data->fweights_shgrp, geom, ob->obmat); } - if (do_show_mesh_analysis) { + if (do_show_mesh_analysis && !XRAY_ACTIVE(v3d)) { Mesh *me = (Mesh *)ob->data; BMEditMesh *embm = me->edit_mesh; const bool is_original = embm->mesh_eval_final && |