[Bf-blender-cvs] [ecab41e44f7] blender-v2.82-release: Fix T54422 FluidSim: ColorRamp set position does not update the viewport

Clément Foucault noreply at git.blender.org
Tue Jan 28 15:54:21 CET 2020


Commit: ecab41e44f7913ee97bae7c339ab95523111d46a
Author: Clément Foucault
Date:   Tue Jan 28 15:54:07 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rBecab41e44f7913ee97bae7c339ab95523111d46a

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.

===================================================================

M	source/blender/makesrna/intern/rna_color.c

===================================================================

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:



More information about the Bf-blender-cvs mailing list