[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21325] branches/soc-2009-jaguarandi/ source/blender/render/intern/source/rayobject_bvh.c: *fixed crash
André Pinto
andresusanopinto at gmail.com
Fri Jul 3 00:12:26 CEST 2009
Revision: 21325
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21325
Author: jaguarandi
Date: 2009-07-03 00:12:26 +0200 (Fri, 03 Jul 2009)
Log Message:
-----------
*fixed crash
Modified Paths:
--------------
branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c
Modified: branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c
===================================================================
--- branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c 2009-07-02 21:57:50 UTC (rev 21324)
+++ branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c 2009-07-02 22:12:26 UTC (rev 21325)
@@ -150,8 +150,11 @@
for(i=BVH_NCHILDS-1; i>=0; i--)
if(RayObject_isAligned(node->child[i]))
{
- hit |= dfs_raycast(node->child[i], isec);
- if(hit && isec->mode == RE_RAY_SHADOW) return hit;
+ if(node->child[i])
+ {
+ hit |= dfs_raycast(node->child[i], isec);
+ if(hit && isec->mode == RE_RAY_SHADOW) return hit;
+ }
}
else
{
@@ -259,7 +262,7 @@
assert(obj->alloc+needed_nodes >= obj->next_node);
- printf("BVH: Used %d nodes\n", obj->next_node-obj->alloc);
+// printf("BVH: Used %d nodes\n", obj->next_node-obj->alloc);
rtbuild_free( obj->builder );
More information about the Bf-blender-cvs
mailing list