diff options
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 2dd2dfa7a0..7857e85f4c 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1078,7 +1078,11 @@ Session::state (bool full_state) boost::shared_ptr<Region> r = i->second; /* only store regions not attached to playlists */ if (r->playlist() == 0) { - child->add_child_nocopy (r->get_state ()); + if (boost::dynamic_pointer_cast<AudioRegion>(r)) { + child->add_child_nocopy ((boost::dynamic_pointer_cast<AudioRegion>(r))->get_basic_state ()); + } else { + child->add_child_nocopy (r->get_state ()); + } } } |