fixed bounding volume issue
[laserbrain_demo] / src / snode.cc
index eee5fce..fd37f24 100644 (file)
@@ -330,7 +330,7 @@ AABox SceneNode::get_bounds() const
                calc_bounding_aabox(&sub_aabb, &sub_aabb, &tmp);
        }
 
-       AABox aabb;
-       calc_bounding_aabox(&aabb, &local_bvol, &sub_aabb);
+       AABox aabb = get_node_bounds();
+       calc_bounding_aabox(&aabb, &aabb, &sub_aabb);
        return aabb;
 }