From 86ef6a96dd1766c0f54f8400067bc0f917abbce6 Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Tue, 30 Jul 2019 15:54:04 -0500 Subject: [PATCH] if the RouteList passed to create_snapshot is empty it will use the method (whcih I will eventualyl collapse into one method) that captures all the tracks in the session. snapshots now create normally again --- libs/ardour/mixer_snapshot_manager.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/ardour/mixer_snapshot_manager.cc b/libs/ardour/mixer_snapshot_manager.cc index a1f83eed40..cdc77e2575 100644 --- a/libs/ardour/mixer_snapshot_manager.cc +++ b/libs/ardour/mixer_snapshot_manager.cc @@ -108,7 +108,15 @@ void MixerSnapshotManager::create_snapshot(std::string const& label, RouteList& ensure_snapshot_dir(global); const string path = global ? _global_path : _local_path; MixerSnapshot* snapshot = new MixerSnapshot(_session); - snapshot->snap(rl); + + if(!rl.empty()) { + //just this routelist + snapshot->snap(rl); + } else { + //the whole session + snapshot->snap(); + } + snapshot->set_label(label); snapshot->write(path); refresh();