panner: backwards compatibility, constrain pan-range in old sessions
fixes http://tracker.ardour.org/view.php?id=5823#c15686
This is only an issue when loading an old session
(pre 3.5.308 - actual change was 21ca6a10) for the first
time with newer ardour.
Saving and re-loading with ardour >= 3.5.308 fixed this as well.
This commit is contained in:
@@ -233,6 +233,16 @@ PannerShell::set_state (const XMLNode& node, int version)
|
||||
_current_panner_uri = (*p)->descriptor.panner_uri;
|
||||
_panner_gui_uri = (*p)->descriptor.gui_uri;
|
||||
|
||||
if (_is_send) {
|
||||
if (!_panlinked) {
|
||||
_pannable_internal->set_panner(_panner);
|
||||
} else {
|
||||
_force_reselect = true;
|
||||
}
|
||||
} else {
|
||||
_pannable_route->set_panner(_panner);
|
||||
}
|
||||
|
||||
if (_panner->set_state (**niter, version) == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user