Clean up Wself-assign - see also d91374d0db
This commit is contained in:
parent
8b18d7ab61
commit
01863886b5
@ -339,14 +339,12 @@ ParameterDescriptor::to_interface (float val, bool rotary) const
|
||||
}
|
||||
break;
|
||||
case PanAzimuthAutomation:
|
||||
if (rotary) {
|
||||
; // val = val;
|
||||
} else {
|
||||
if (!rotary) {
|
||||
val = 1.0 - val;
|
||||
}
|
||||
break;
|
||||
case PanElevationAutomation:
|
||||
; // val = val;
|
||||
// val = val;
|
||||
break;
|
||||
case PanWidthAutomation:
|
||||
val = .5f + val * .5f;
|
||||
@ -396,14 +394,12 @@ ParameterDescriptor::from_interface (float val, bool rotary) const
|
||||
}
|
||||
break;
|
||||
case PanAzimuthAutomation:
|
||||
if (rotary) {
|
||||
val = val;
|
||||
} else {
|
||||
if (!rotary) {
|
||||
val = 1.0 - val;
|
||||
}
|
||||
break;
|
||||
case PanElevationAutomation:
|
||||
val = val;
|
||||
// val = val;
|
||||
break;
|
||||
case PanWidthAutomation:
|
||||
val = 2.f * val - 1.f;
|
||||
|
Loading…
Reference in New Issue
Block a user