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:
parent
e6509fcb51
commit
99869fcd6a
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue