From 80cecee5b7c81feb1e2a5e56cbfed66981124265 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 31 Jan 2020 13:02:20 +0100 Subject: Fix T68788: Particle Edit Mode Hair vertex doesn't follow vertex theme color Selection and grooming only ever happens on hair keys (vertices), so makes sense to use that theme color. Sidenote: `CacheEditrPathsIterData` and `PTCacheEdit` have `sel_col` and `nosel_col`, these can go, will do in a separate commit. Maniphest Tasks: T68788 Differential Revision: https://developer.blender.org/D6725 --- source/blender/editors/physics/particle_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/physics/particle_object.c') diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c index 466b87755fe..c2407310e64 100644 --- a/source/blender/editors/physics/particle_object.c +++ b/source/blender/editors/physics/particle_object.c @@ -1037,7 +1037,8 @@ static void copy_particle_edit(Depsgraph *depsgraph, } update_world_cos(ob, edit); - UI_GetThemeColor3ubv(TH_EDGE_SELECT, edit->sel_col); + /* 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); -- cgit v1.2.3