summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-18 15:36:15 +0000
committerDavid Robillard <d@drobilla.net>2011-02-18 15:36:15 +0000
commitd3264c5685c90856379df368f131188c2af6ab09 (patch)
tree0bfc7684e4b1b939c8b9c516148328da7b2b89e7 /src/serialisation
parentd339144f61105e126f34ac61eb79a8ac319c3726 (diff)
downloadingen-d3264c5685c90856379df368f131188c2af6ab09.tar.gz
ingen-d3264c5685c90856379df368f131188c2af6ab09.tar.bz2
ingen-d3264c5685c90856379df368f131188c2af6ab09.zip
Save (patch ingen:node subpatch) for subpatch nodes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2987 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Serialiser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index 032ade34..39723177 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -353,6 +353,9 @@ Serialiser::serialise_patch(SharedPtr<Shared::Patch> patch, const Sord::Node& pa
// Serialise reference to patch node
const Sord::URI class_id(world, sub_bundle_path);
const Sord::Node node_id(path_rdf_node(subpatch->path()));
+ _model->add_statement(patch_id,
+ Sord::Curie(world, "ingen:node"),
+ node_id);
serialise_node(subpatch, class_id, node_id);
} else if (node) {
const Sord::URI class_id(world, node->plugin()->uri().str());