13
0

Remove hardcoded session-state versions

This commit is contained in:
Robin Gareus 2019-12-11 13:55:51 +01:00
parent 3dafaaf2df
commit dd18be15fb
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ Automatable::set_automation_xml_state (const XMLNode& node, Evoral::Parameter le
boost::shared_ptr<AutomationControl> existing = automation_control (param);
if (existing) {
existing->alist()->set_state (**niter, 3000);
existing->alist()->set_state (**niter, Stateful::loading_state_version);
} else {
boost::shared_ptr<Evoral::Control> newcontrol = control_factory(param);
add_control (newcontrol);

View File

@ -471,7 +471,7 @@ PannerShell::set_linked_to_route (bool onoff)
*/
if (pannable()) {
XMLNode state = pannable()->get_state();
pannable()->set_state(state, 3000);
pannable()->set_state(state, Stateful::loading_state_version);
}
_panlinked = onoff;

View File

@ -2947,7 +2947,7 @@ Session::new_route_from_template (uint32_t how_many, PresentationInfo::order_t i
*/
node_copy.remove_node_and_delete (X_("Controllable"), X_("name"), X_("solo"));
boost::shared_ptr<Route> route (XMLRouteFactory (node_copy, 3000));
boost::shared_ptr<Route> route (XMLRouteFactory (node_copy, Stateful::loading_state_version));
if (route == 0) {
error << _("Session: cannot create track/bus from template description") << endmsg;