From ecab41e44f7913ee97bae7c339ab95523111d46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 28 Jan 2020 15:54:07 +0100 Subject: Fix T54422 FluidSim: ColorRamp set position does not update the viewport This was a missing notification because of wrong type. Also remove the id tag as the changes are still picked up by workbench and does not affect geometry or the particle system directly. --- source/blender/makesrna/intern/rna_color.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c index 679ccc9725b..215ccc78bc2 100644 --- a/source/blender/makesrna/intern/rna_color.c +++ b/source/blender/makesrna/intern/rna_color.c @@ -329,10 +329,11 @@ static void rna_ColorRamp_update(Main *bmain, Scene *UNUSED(scene), PointerRNA * WM_main_add_notifier(NC_LINESTYLE, linestyle); break; } + /* ColorRamp for particle display is owned by the object (see T54422) */ + case ID_OB: case ID_PA: { ParticleSettings *part = (ParticleSettings *)ptr->owner_id; - DEG_id_tag_update(&part->id, ID_RECALC_GEOMETRY | ID_RECALC_PSYS_REDO); WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, part); } default: -- cgit v1.2.3