diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-09-11 17:34:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-09-11 17:34:52 +0300 |
commit | 998a80435819387ce88d922d7fd7049e8e27b7bf (patch) | |
tree | df539b8c1bc09cb7046f0c104599a56723696187 /source | |
parent | 1a590c7a1cb01624e23e05f5f8fb5ab1898534b5 (diff) |
DRW: Don't highjack all debug values (cont)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index c6eeda45d40..b5729d2ef55 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1570,7 +1570,7 @@ void DRW_draw_render_loop_ex( ED_view3d_draw_bgpic_test(scene, depsgraph, ar, v3d, true, true); } - if (G.debug_value > 20) { + if (G.debug_value > 20 && G.debug_value < 30) { glDisable(GL_DEPTH_TEST); rcti rect; /* local coordinate visible rect inside region, to accomodate overlapping ui */ ED_region_visible_rect(DST.draw_ctx.ar, &rect); diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index 26507a83553..592bb2b8dec 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -1012,7 +1012,9 @@ DRWPass *DRW_pass_create(const char *name, DRWState state) { DRWPass *pass = BLI_mempool_alloc(DST.vmempool->passes); pass->state = state; - if ((G.debug_value > 20) || (G.debug & G_DEBUG)) { + if (((G.debug_value > 20) && (G.debug_value < 30)) || + (G.debug & G_DEBUG)) + { BLI_strncpy(pass->name, name, MAX_PASS_NAME); } |