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

index edeb6c07733f32d25b5bdd567a77082163b984c6..3900117327e96a34f2758579c86c0b0cdab9842e 100644 (file)
@@ -81,7 +81,7 @@ void DRW_stats_free(void)
 
 void DRW_stats_begin(void)
 {
-       if (G.debug_value > 20) {
+       if (G.debug_value > 20 && G.debug_value < 30) {
                DTP.is_recording = true;
        }