From 9aae62a59b2e8cfbf476a33e99ac1966b96e2bc9 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 12 Feb 2020 19:17:19 +0100 Subject: Particles: remove unused sel_col and nosel_col from CacheEditrPathsIterData and PTCacheEdit Followup to 80cecee5b7c8. ref D6725 --- source/blender/editors/physics/particle_edit.c | 9 --------- source/blender/editors/physics/particle_object.c | 4 ---- 2 files changed, 13 deletions(-) (limited to 'source/blender/editors/physics') 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); -- cgit v1.2.3