Cleanup: remove unused simplify level from volume runtime data

This commit is contained in:
Jacques Lucke
2024-01-07 11:03:18 +01:00
parent 28356d1f89
commit e983e47616
2 changed files with 0 additions and 5 deletions

View File

@@ -129,9 +129,6 @@ struct VolumeRuntime {
/** Current frame in sequence for evaluated volume. */
int frame = 0;
/** Default simplify level for volume grids loaded from files. */
int default_simplify_level = 0;
/* Names for scalar grids which would need to be merged to recompose the velocity grid. */
char velocity_x_grid[64] = "";
char velocity_y_grid[64] = "";

View File

@@ -165,7 +165,6 @@ static void volume_copy_data(Main * /*bmain*/, ID *id_dst, const ID *id_src, con
}
#endif
volume_dst->runtime->default_simplify_level = volume_src->runtime->default_simplify_level;
volume_dst->runtime->frame = volume_src->runtime->frame;
STRNCPY(volume_dst->runtime->velocity_x_grid, volume_src->runtime->velocity_x_grid);
STRNCPY(volume_dst->runtime->velocity_y_grid, volume_src->runtime->velocity_y_grid);
@@ -653,7 +652,6 @@ static void volume_update_simplify_level(Main *bmain, Volume *volume, const Deps
{
#ifdef WITH_OPENVDB
const int simplify_level = BKE_volume_simplify_level(depsgraph);
volume->runtime->default_simplify_level = simplify_level;
/* Replace grids with the new simplify level variants from the cache. */
if (BKE_volume_load(volume, bmain)) {