diff options
author | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-08-04 03:25:38 +0400 |
---|---|---|
committer | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-08-04 03:25:38 +0400 |
commit | eaf232cad9f48dd2aa48ebba7197aee6d5586ec2 (patch) | |
tree | ac07c0978e0db0f8f9cefc5ded953796fb8223ba /source/blender/render/intern/raytrace/rayobject_rtbuild.cpp | |
parent | 29530beb904b9944b5ba0453cb5b5e873701b3db (diff) |
single tree (by default)
now that build is nlogn (it should be worth to the tree of trees)
Diffstat (limited to 'source/blender/render/intern/raytrace/rayobject_rtbuild.cpp')
-rw-r--r-- | source/blender/render/intern/raytrace/rayobject_rtbuild.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp index fb2d05a0a14..238929e1dbb 100644 --- a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp +++ b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp @@ -335,8 +335,8 @@ int rtbuild_heuristic_object_split(RTBuilder *b, int nchilds) right_side= bb_area(sweep[i].bb, sweep[i].bb+3)*(sweep[i].cost+logf(size-i)); hcost = left_side+right_side; - assert(left_side > 0); - assert(right_side > 0); + assert(left_side >= 0); + assert(right_side >= 0); if(left_side > bcost) break; //No way we can find a better heuristic in this axis |