diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 10:57:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 10:58:14 +0300 |
commit | 8f1223b6362a42b406367d9693166854538a5dc4 (patch) | |
tree | bde2a274998f414ce4468883688d3705d7e25d7d /source | |
parent | c63398e55ab5a77ef48f65bba2e7dff31a131273 (diff) |
Move some debug print under G.debug
It's not like every debug build is benefiting from this print..
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/raytrace/reorganize.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/render/intern/raytrace/reorganize.h b/source/blender/render/intern/raytrace/reorganize.h index e25538cd584..84d04a8851f 100644 --- a/source/blender/render/intern/raytrace/reorganize.h +++ b/source/blender/render/intern/raytrace/reorganize.h @@ -38,6 +38,8 @@ #include <queue> #include <vector> +#include "BKE_global.h" + #ifdef _WIN32 # ifdef INFINITY # undef INFINITY @@ -500,7 +502,7 @@ struct VBVH_optimalPackSIMD { calc_costs(node); #ifdef DEBUG - if (first) { + if (first && G.debug) { printf("expected cost = %f (%d)\n", node->cut_cost[0], node->best_cutsize); } #endif |