Vst3 processParameterChanges

I have an issue in ableton live with the vst3, where the audioProcessorParameterChanged() callback is being called unnecessarily after loading a preset (which turns my plugin state to be marked as modified while it is not, as a preset just got loaded).

by adding a simple test like if (floatValue != param->getValue()) in JuceVST3Component::processParameterChanges
the callback will only be called if the parameters actually changes, which solves the issue.

Is there any reason why the callback is called even when the parameters doesn’t change in the current code?

diff.txt (1,3 Ko)