From ec55e5f2da3b65002cd057697a1b5edd638d54b5 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 11 Feb 2023 12:19:00 -0500 Subject: [PATCH] fix some data bugs with lightgrid octree mode --- light/light.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/light/light.cc b/light/light.cc index 5c05790d..e6a75615 100644 --- a/light/light.cc +++ b/light/light.cc @@ -1451,19 +1451,19 @@ static void LightGrid(bspdata_t *bspdata) str <= grid_mins; str <= num_styles; - str << static_cast(root_node); + str <= static_cast(root_node); // the nodes (fixed-size) - str << static_cast(octree_nodes.size()); + str <= static_cast(octree_nodes.size()); for (const auto &node : octree_nodes) { - str << node.division_point; + str <= node.division_point; for (const auto child : node.children) { - str << child; + str <= child; } } // the leafs (each is variable sized) - str << static_cast(octree_leafs.size()); + str <= static_cast(octree_leafs.size()); for (const auto &leaf : octree_leafs) { str <= leaf.mins; str <= leaf.size;