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.
This commit is contained in:
Clément Foucault 2020-01-28 15:54:07 +01:00
parent ed4cbde967
commit ecab41e44f
Notes: blender-bot 2023-02-14 06:05:24 +01:00
Referenced by issue #54422, Color Ramp set position controller changes the slider but Smoke Simulation doesn't change
1 changed files with 2 additions and 1 deletions

View File

@ -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: