diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-11 16:21:23 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-11 16:25:08 +0100 |
commit | 0a5837ec7111e446f168e6a5cc245b4b62fc7a9e (patch) | |
tree | b8830f0410889e2a76449f75a25a823173304d48 /libs/ardour/ardour/route.h | |
parent | dd18be15fbe9ad6a594f37b0d3a8183c0601babb (diff) |
Fix loading plugin state from sessions
While loading a session XML state, set_state must use
`Stateful::loading_state_version`.
When later copying processor state,
`Stateful::current_state_version` is correct.
Diffstat (limited to 'libs/ardour/ardour/route.h')
-rw-r--r-- | libs/ardour/ardour/route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index 5c2c4ad48d..781f989d8f 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -409,8 +409,8 @@ public: virtual int set_state (const XMLNode&, int version); XMLNode& get_processor_state (); - void set_processor_state (const XMLNode&); - virtual bool set_processor_state (XMLNode const & node, XMLProperty const* prop, ProcessorList& new_order, bool& must_configure); + void set_processor_state (const XMLNode&, int version); + virtual bool set_processor_state (XMLNode const & node, int version, XMLProperty const* prop, ProcessorList& new_order, bool& must_configure); boost::weak_ptr<Route> weakroute (); |