pre-seed session-state-version.

copying/paste of many objects use ::set_state(, version) to set the
the state of the copy.  Stateful::loading_state_version is used for
state-version in those cases.

This fails for a New Session (version==0) or when creating a New Session
after loading an Ardour2 session.
This commit is contained in:
Robin Gareus 2015-08-28 14:07:48 +02:00
parent 20fb2bec75
commit 9458fce148

View File

@ -305,6 +305,8 @@ Session::Session (AudioEngine &eng,
if (_is_new) {
Stateful::loading_state_version = CURRENT_SESSION_FILE_VERSION;
#ifdef USE_TRACKS_CODE_FEATURES
sr = EngineStateController::instance()->get_current_sample_rate();
#endif