diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 17:20:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 18:17:29 +0300 |
commit | e4b3fe4b690689357f81e58442d9bdf77e502124 (patch) | |
tree | 29cda2e7655cd032455f999b65a2f8b37b6e1289 /source/blender/draw/intern/draw_common.c | |
parent | f37e45c26b4a528e3f023152924199aa26424a12 (diff) |
Wireframe: Fix wireframe color in edit mode for surfaces
Diffstat (limited to 'source/blender/draw/intern/draw_common.c')
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index 35f060bd3ba..837b6e5d051 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -878,9 +878,11 @@ int DRW_object_wire_theme_get(Object *ob, ViewLayer *view_layer, float **r_color * note: no theme yet for 'colindex' */ int theme_id = is_edit ? TH_WIRE_EDIT : TH_WIRE; - if (//(scene->obedit == NULL) && - ((G.moving & G_TRANSFORM_OBJ) != 0) && - ((ob->base_flag & BASE_SELECTED) != 0)) + if (is_edit) { + /* fallback to TH_WIRE */ + } + else if (((G.moving & G_TRANSFORM_OBJ) != 0) && + ((ob->base_flag & BASE_SELECTED) != 0)) { theme_id = TH_TRANSFORM; } |