we should clear property changes recursively for a region drag, not just toplevel properties

This commit is contained in:
Paul Davis 2021-06-04 11:14:35 -06:00
parent 989408626d
commit ff85496b03

View File

@ -2156,9 +2156,15 @@ RegionMoveDrag::insert_region_into_playlist (
/* clear history for the playlist we are about to insert to, provided we haven't already done so */
pair<PlaylistSet::iterator, bool> r = modified_playlists.insert (dest_playlist);
cerr << "Inserting " << region->name() << " @ " << where.sample << endl;
if (r.second) {
dest_playlist->clear_changes ();
dest_playlist->clear_owned_changes ();
/* cannot freeze because we need the new region announcements */
}
if (for_music) {
dest_playlist->add_region (region, where.sample, 1.0, false, where.division, quarter_note, true);
} else {