1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessor: Fix incorrect assertion when calling setParameterTree()

This commit is contained in:
attila 2023-12-09 08:51:32 +01:00
parent e6509fcb51
commit 99869fcd6a

View file

@ -541,10 +541,13 @@ void AudioProcessor::addParameterGroup (std::unique_ptr<AudioProcessorParameterG
void AudioProcessor::setParameterTree (AudioProcessorParameterGroup&& newTree)
{
#if JUCE_DEBUG
#if JUCE_DEBUG
paramIDs.clear();
groupIDs.clear();
#if ! JUCE_DISABLE_CAUTIOUS_PARAMETER_ID_CHECKING
trimmedParamIDs.clear();
#endif
#endif
parameterTree = std::move (newTree);
checkForDuplicateGroupIDs (parameterTree);