diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-04-15 17:48:03 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-04-15 17:48:03 +0400 |
commit | cf2287a27cc81b44b293ebde4d8b16c93ea81e10 (patch) | |
tree | 6355e999cc66af0c4623dd3ddeb8558caacc5b2e /source/blender/render/intern/raytrace | |
parent | 9a85013692322f8a821b8228ad552f84d2a215e9 (diff) |
disable an assert, use a guess assignment instead.
Diffstat (limited to 'source/blender/render/intern/raytrace')
-rw-r--r-- | source/blender/render/intern/raytrace/rayobject_rtbuild.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp index dcefb2072b8..7869a5d8f8c 100644 --- a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp +++ b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp @@ -386,7 +386,9 @@ int rtbuild_heuristic_object_split(RTBuilder *b, int nchilds) // right_cost -= obj[i]->cost; if(right_cost < 0) right_cost = 0; } - assert(baxis >= 0 && baxis < 3); + //assert(baxis >= 0 && baxis < 3); + if (!(baxis >= 0 && baxis < 3)) + baxis = 0; } |