summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 8a95f22f8d..76b7ec0ec6 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -1207,7 +1207,11 @@ Region::state ()
node->add_property (buf2, buf);
}
- if (max_source_level() > 0) {
+ /* Only store nested sources for the whole-file region that acts
+ as the parent/root of all regions using it.
+ */
+
+ if (_whole_file && max_source_level() > 0) {
XMLNode* nested_node = new XMLNode (X_("NestedSource"));