mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
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:
parent
fed5599baa
commit
e69057319e
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue