diff options
Diffstat (limited to 'source/blender/render/intern/raytrace/svbvh.h')
-rw-r--r-- | source/blender/render/intern/raytrace/svbvh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/raytrace/svbvh.h b/source/blender/render/intern/raytrace/svbvh.h index 8fb2db63df6..e0e96781f36 100644 --- a/source/blender/render/intern/raytrace/svbvh.h +++ b/source/blender/render/intern/raytrace/svbvh.h @@ -224,7 +224,7 @@ struct Reorganize_SVBVH ~Reorganize_SVBVH() { - if(G.f & G_DEBUG) { + if(G.debug & G_DEBUG) { printf("%f childs per node\n", childs_per_node / nodes); printf("%d childs BB are useless\n", useless_bb); for(int i=0; i<16; i++) @@ -296,7 +296,7 @@ struct Reorganize_SVBVH { const static float def_bb[6] = { FLT_MAX, FLT_MAX, FLT_MAX, FLT_MIN, FLT_MIN, FLT_MIN }; alloc_childs--; - node->child[alloc_childs] = 0; + node->child[alloc_childs] = NULL; copy_bb(node->child_bb+alloc_childs*6, def_bb); } |