diff options
author | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-10-10 22:42:20 +0400 |
---|---|---|
committer | Andre Susano Pinto <andresusanopinto@gmail.com> | 2009-10-10 22:42:20 +0400 |
commit | deb30e8f9e7858a6e7800a31d0b2051471406162 (patch) | |
tree | b0e5c86c8c3e44cdb6f3a0aae579b4826293f390 /source/blender/render/intern/raytrace | |
parent | 622ffe263a61c1312e14ce74de148e7106b4b183 (diff) |
Fix #19571 (reported by Markus Ilmola):
Added missing callbacks. Was leading to crashs when the raytree was empty.
Diffstat (limited to 'source/blender/render/intern/raytrace')
-rw-r--r-- | source/blender/render/intern/raytrace/rayobject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/render/intern/raytrace/rayobject.cpp b/source/blender/render/intern/raytrace/rayobject.cpp index 621fd3f794e..d8880b51c6c 100644 --- a/source/blender/render/intern/raytrace/rayobject.cpp +++ b/source/blender/render/intern/raytrace/rayobject.cpp @@ -559,6 +559,9 @@ static float RE_rayobject_empty_cost(RayObject *o) return 0.0; } +static void RE_rayobject_empty_hint_bb(RayObject *o, RayHint *hint, float *min, float *max) +{} + static RayObjectAPI empty_api = { RE_rayobject_empty_intersect, @@ -566,7 +569,8 @@ static RayObjectAPI empty_api = NULL, //static void RE_rayobject_instance_done(RayObject *o); RE_rayobject_empty_free, RE_rayobject_empty_bb, - RE_rayobject_empty_cost + RE_rayobject_empty_cost, + RE_rayobject_empty_hint_bb }; static RayObject empty_raytree = { &empty_api, {0, 0} }; |