diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-26 15:27:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-26 18:46:03 +0300 |
commit | 487cd7237c9d208cd2b9fa11f49a83ba46a97399 (patch) | |
tree | e2a386ca18c464e388a3bf731f5a7778110dd7d8 /source/blender | |
parent | c32377da9888cc004cb9216383a9f1383fcf5a03 (diff) |
DRW: check exact draw flags before getting wire-frame color
Only some options need this.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 06e5b521514..54e915dbe64 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -3685,7 +3685,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob) DRW_shgroup_relationship_lines(sgl, draw_ctx->depsgraph, scene, ob); } - const bool draw_extra = (ob->dtx != 0); + const bool draw_extra = ob->dtx & (OB_DRAWNAME | OB_TEXSPACE | OB_DRAWBOUNDOX); if (draw_extra && (theme_id == TH_UNDEFINED)) { theme_id = DRW_object_wire_theme_get(ob, view_layer, NULL); } |