Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-02-12 21:17:19 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-02-12 21:17:19 +0300
commit9aae62a59b2e8cfbf476a33e99ac1966b96e2bc9 (patch)
tree86493d97863577431d3662863a9377a0022c35af /source/blender/editors/physics
parent80cecee5b7c81feb1e2a5e56cbfed66981124265 (diff)
Particles: remove unused sel_col and nosel_col from
CacheEditrPathsIterData and PTCacheEdit Followup to 80cecee5b7c8. ref D6725
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c9
-rw-r--r--source/blender/editors/physics/particle_object.c4
2 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 02842f87700..ca13133662f 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -5188,15 +5188,6 @@ void PE_create_particle_edit(
psys = NULL;
}
- /* Causes assert on startup. */
-#if 0
- /* These are unused and can be removed. */
- UI_GetThemeColor3ubv(TH_VERTEX_SELECT, edit->sel_col);
- UI_GetThemeColor3ubv(TH_WIRE, edit->nosel_col);
-#else
- memset(edit->sel_col, 0xff, sizeof(edit->sel_col));
- memset(edit->nosel_col, 0x00, sizeof(edit->nosel_col));
-#endif
recalc_lengths(edit);
if (psys && !cache) {
recalc_emitter_field(depsgraph, ob, psys);
diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index c2407310e64..4bd58d1bebc 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -1037,10 +1037,6 @@ static void copy_particle_edit(Depsgraph *depsgraph,
}
update_world_cos(ob, edit);
- /* These are unused and can be removed. */
- UI_GetThemeColor3ubv(TH_VERTEX_SELECT, edit->sel_col);
- UI_GetThemeColor3ubv(TH_WIRE, edit->nosel_col);
-
recalc_lengths(edit);
recalc_emitter_field(depsgraph, ob, psys);
PE_update_object(depsgraph, scene, ob, true);