DRW: Don't highjack all debug values (cont)
authorClément Foucault <foucault.clem@gmail.com>
Tue, 11 Sep 2018 14:34:52 +0000 (16:34 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 11 Sep 2018 14:34:52 +0000 (16:34 +0200)
source/blender/draw/intern/draw_manager.c
source/blender/draw/intern/draw_manager_data.c

index c6eeda45d40e734df75bfc2353282a2f39667033..b5729d2ef55ab1b27326df306b794f29147e0e0c 100644 (file)
@@ -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);
index 26507a835537013bd2881accec0b3e3567c2a3fa..592bb2b8dec42e1e0c9cbbc1b857a09e8302e3b5 100644 (file)
@@ -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);
        }