diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-12 22:45:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-12 22:45:01 +0300 |
commit | 6a0308aad332137c0b6f22152a439ca0f73914da (patch) | |
tree | 821692dc6ebdefb806106dd58d9fb5be87072169 /source/blender/render/intern/raytrace/reorganize.h | |
parent | 000dcc7ad767511baec0e88b4e88b24c5667ef7e (diff) |
Raytrace: only print debug info when running with -d option.
Diffstat (limited to 'source/blender/render/intern/raytrace/reorganize.h')
-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 7b14108760a..845f53605a8 100644 --- a/source/blender/render/intern/raytrace/reorganize.h +++ b/source/blender/render/intern/raytrace/reorganize.h @@ -32,6 +32,8 @@ #include <vector> #include <queue> +#include "BKE_global.h" + #ifdef _WIN32 #define INFINITY FLT_MAX // in mingw math.h: (1.0F/0.0F). This generates compile error, though. #endif @@ -515,7 +517,7 @@ struct VBVH_optimalPackSIMD if(num == 0) { num++; first = true; } calc_costs(node); - if(first) printf("expected cost = %f (%d)\n", node->cut_cost[0], node->best_cutsize ); + if((G.f & G_DEBUG) && first) printf("expected cost = %f (%d)\n", node->cut_cost[0], node->best_cutsize ); node->optimize(); } return node; |