Particles: remove unused sel_col and nosel_col from

CacheEditrPathsIterData and PTCacheEdit

Followup to 80cecee5b7.

ref D6725
This commit is contained in:
2020-02-12 19:17:19 +01:00
parent 80cecee5b7
commit 9aae62a59b
4 changed files with 0 additions and 30 deletions

View File

@@ -3112,8 +3112,6 @@ typedef struct CacheEditrPathsIterData {
ParticleData *pa;
int segments;
bool use_weight;
float sel_col[3];
float nosel_col[3];
} CacheEditrPathsIterData;
static void psys_cache_edit_paths_iter(void *__restrict iter_data_v,
@@ -3330,18 +3328,6 @@ void psys_cache_edit_paths(Depsgraph *depsgraph,
iter_data.segments = segments;
iter_data.use_weight = use_weight;
if (use_weight) {
/* use weight painting colors now... */
}
else {
iter_data.sel_col[0] = (float)edit->sel_col[0] / 255.0f;
iter_data.sel_col[1] = (float)edit->sel_col[1] / 255.0f;
iter_data.sel_col[2] = (float)edit->sel_col[2] / 255.0f;
iter_data.nosel_col[0] = (float)edit->nosel_col[0] / 255.0f;
iter_data.nosel_col[1] = (float)edit->nosel_col[1] / 255.0f;
iter_data.nosel_col[2] = (float)edit->nosel_col[2] / 255.0f;
}
TaskParallelSettings settings;
BLI_parallel_range_settings_defaults(&settings);
settings.scheduling_mode = TASK_SCHEDULING_DYNAMIC;