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:
parent
20fb2bec75
commit
9458fce148
@ -305,6 +305,8 @@ Session::Session (AudioEngine &eng,
|
|||||||
|
|
||||||
if (_is_new) {
|
if (_is_new) {
|
||||||
|
|
||||||
|
Stateful::loading_state_version = CURRENT_SESSION_FILE_VERSION;
|
||||||
|
|
||||||
#ifdef USE_TRACKS_CODE_FEATURES
|
#ifdef USE_TRACKS_CODE_FEATURES
|
||||||
sr = EngineStateController::instance()->get_current_sample_rate();
|
sr = EngineStateController::instance()->get_current_sample_rate();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user