DRW: Don't highjack all debug values (cont)
This commit is contained in:
parent
1a590c7a1c
commit
998a804358
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue