summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation/Parser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-18 20:11:25 +0000
committerDavid Robillard <d@drobilla.net>2008-08-18 20:11:25 +0000
commit0e0c7dcda848838e5321b4eb80bae5f0f00d056f (patch)
tree29d931485f016ae2b52e4c99eb0c86f861d384aa /src/libs/serialisation/Parser.cpp
parent625c01a594f9cc73d7b83a85d314ddb859d8d029 (diff)
downloadingen-0e0c7dcda848838e5321b4eb80bae5f0f00d056f.tar.gz
ingen-0e0c7dcda848838e5321b4eb80bae5f0f00d056f.tar.bz2
ingen-0e0c7dcda848838e5321b4eb80bae5f0f00d056f.zip
Fix serialisation of patcthes with internal nodes.
git-svn-id: http://svn.drobilla.net/lad/ingen@1434 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/serialisation/Parser.cpp')
-rw-r--r--src/libs/serialisation/Parser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libs/serialisation/Parser.cpp b/src/libs/serialisation/Parser.cpp
index c26921ea..4fc7b6a9 100644
--- a/src/libs/serialisation/Parser.cpp
+++ b/src/libs/serialisation/Parser.cpp
@@ -199,8 +199,6 @@ Parser::parse_patch(
std::set<Path> created;
uint32_t patch_poly = 0;
- cout << "PARSE PATCH: " << base_uri << " - " << object_uri << " - " << engine_base << endl;
-
/* Use parameter overridden polyphony, if given */
if (data) {
GraphObject::Variables::iterator poly_param = data.get().find("ingen:polyphony");
@@ -261,7 +259,7 @@ Parser::parse_patch(
const Path node_path = patch_path.base() + node_name;
if (created.find(node_path) == created.end()) {
- const string node_plugin = world->rdf_world->qualify((*i)["plugin"].to_string());
+ const string node_plugin = (*i)["plugin"].to_string();
bool node_polyphonic = false;
const Redland::Node& poly_node = (*i)["poly"];
@@ -423,7 +421,7 @@ Parser::parse_node(
return false;
}
- target->new_node(path, plugin_node.to_c_string());
+ target->new_node(path, world->rdf_world->expand_uri(plugin_node.to_c_string()));
parse_variables(world, target, model, base_uri, subject, path, data);
return true;