diff options
author | David Robillard <d@drobilla.net> | 2009-12-30 15:44:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-12-30 15:44:40 +0000 |
commit | 75527443361902ff924ddd01755b9268fcb97b2b (patch) | |
tree | e234fb0cf40a6bb96d9463d0e6648812ec92f885 /src/serialisation | |
parent | a9660d4886917322accd35f5da3f0296a5cceddf (diff) | |
download | ingen-75527443361902ff924ddd01755b9268fcb97b2b.tar.gz ingen-75527443361902ff924ddd01755b9268fcb97b2b.tar.bz2 ingen-75527443361902ff924ddd01755b9268fcb97b2b.zip |
Fix serialisation of subpatches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2322 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index e070d771..33c438e5 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -321,18 +321,18 @@ Serialiser::serialise_patch(SharedPtr<Shared::Patch> patch, const Redland::Node& for (Store::const_iterator n = _store->children_begin(patch); n != _store->children_end(patch); ++n) { - if (n->second->graph_parent() != patch.get()) + if (n->first.parent() != patch->path()) continue; - SharedPtr<Shared::Patch> patch = PtrCast<Shared::Patch>(n->second); + SharedPtr<Shared::Patch> subpatch = PtrCast<Shared::Patch>(n->second); SharedPtr<Shared::Node> node = PtrCast<Shared::Node>(n->second); - if (patch) { + if (subpatch) { const Redland::Resource class_id(_model->world(), - string(META_PREFIX) + patch->path().chop_start("/")); + string(META_PREFIX) + subpatch->path().chop_start("/")); const Redland::Node node_id(instance_rdf_node(n->second->path())); _model->add_statement(patch_id, "ingen:node", node_id); - serialise_patch(patch, class_id); - serialise_node(patch, class_id, node_id); + serialise_patch(subpatch, class_id); + serialise_node(subpatch, class_id, node_id); } else if (node) { const Redland::Resource class_id(_model->world(), node->plugin()->uri().str()); const Redland::Node node_id(instance_rdf_node(n->second->path())); |