light: lightgrid: fix order of saving data.grid_dist
This commit is contained in:
parent
2d515437e1
commit
78f90c1e3b
|
|
@ -498,6 +498,7 @@ void LightGrid(bspdata_t *bspdata)
|
|||
auto &bsp = std::get<mbsp_t>(bspdata->bsp);
|
||||
|
||||
lightgrid_raw_data data;
|
||||
data.grid_dist = light_options.lightgrid_dist.value();
|
||||
|
||||
const auto grid_bounds = LightGridBounds(bsp);
|
||||
const qvec3f grid_maxs = grid_bounds.maxs();
|
||||
|
|
@ -511,8 +512,6 @@ void LightGrid(bspdata_t *bspdata)
|
|||
ceil(world_size[2] / data.grid_dist[2])
|
||||
};
|
||||
|
||||
data.grid_dist = light_options.lightgrid_dist.value();
|
||||
|
||||
std::vector<lightgrid_samples_t> grid_result;
|
||||
grid_result.resize(data.grid_size[0] * data.grid_size[1] * data.grid_size[2]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue