[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21594] branches/soc-2009-jaguarandi/ source/blender/render/intern/raytrace/rayobject_vbvh.cpp: *fix ( was losing childs)
André Pinto
andresusanopinto at gmail.com
Wed Jul 15 01:26:01 CEST 2009
Revision: 21594
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21594
Author: jaguarandi
Date: 2009-07-15 01:26:00 +0200 (Wed, 15 Jul 2009)
Log Message:
-----------
*fix (was losing childs)
Modified Paths:
--------------
branches/soc-2009-jaguarandi/source/blender/render/intern/raytrace/rayobject_vbvh.cpp
Modified: branches/soc-2009-jaguarandi/source/blender/render/intern/raytrace/rayobject_vbvh.cpp
===================================================================
--- branches/soc-2009-jaguarandi/source/blender/render/intern/raytrace/rayobject_vbvh.cpp 2009-07-14 23:15:05 UTC (rev 21593)
+++ branches/soc-2009-jaguarandi/source/blender/render/intern/raytrace/rayobject_vbvh.cpp 2009-07-14 23:26:00 UTC (rev 21594)
@@ -140,6 +140,7 @@
while(child && RayObject_isAligned(child))
{
Node *next = child->sibling;
+ Node **next_s_child = &child->sibling;
assert(bb_fits_inside(parent->bb, parent->bb+3, child->bb, child->bb+3));
@@ -152,11 +153,13 @@
*s_child = child->sibling;
child->sibling = i->child;
i->child = child;
+ next_s_child = s_child;
tot_pushdown++;
break;
}
child = next;
+ s_child = next_s_child;
}
for(Node *i = parent->child; RayObject_isAligned(i) && i; i = i->sibling)
More information about the Bf-blender-cvs
mailing list