Fixes an inconsistent behavior of the tension knob (#2333)
Until now the tension knob was only disabled for discrete and linear mode if the cubic hermite mode was selected at least once. This behavior is fixed with this commit.
This commit is contained in:
@@ -2265,12 +2265,15 @@ void AutomationEditorWindow::setCurrentPattern(AutomationPattern* pattern)
|
||||
{
|
||||
case AutomationPattern::DiscreteProgression:
|
||||
m_discreteAction->setChecked(true);
|
||||
m_tensionKnob->setEnabled(false);
|
||||
break;
|
||||
case AutomationPattern::LinearProgression:
|
||||
m_linearAction->setChecked(true);
|
||||
m_tensionKnob->setEnabled(false);
|
||||
break;
|
||||
case AutomationPattern::CubicHermiteProgression:
|
||||
m_cubicHermiteAction->setChecked(true);
|
||||
m_tensionKnob->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user