Remove hardcoded session-state versions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user