AutomatableModel: do not change init value when adjusting range
This causes e.g. the default value of the pitch model to be changed when changing the pitch range.
This commit is contained in:
@@ -253,7 +253,7 @@ void AutomatableModel::setRange( const float min, const float max,
|
||||
setStep( step );
|
||||
|
||||
// re-adjust value
|
||||
setInitValue( value<float>() );
|
||||
setValue( value<float>() );
|
||||
|
||||
emit propertiesChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user