summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-11-22 05:26:09 +0000
committerDavid Robillard <d@drobilla.net>2012-11-22 05:26:09 +0000
commitf7cc109ffada0a2031fbb3ef814f6b14140e7fa2 (patch)
tree10323cd1756fae5d747ec7e34a6118e20da78c72 /src/serialisation
parentb6376fc247490134827c51c554a6108ab9f5a898 (diff)
downloadingen-f7cc109ffada0a2031fbb3ef814f6b14140e7fa2.tar.gz
ingen-f7cc109ffada0a2031fbb3ef814f6b14140e7fa2.tar.bz2
ingen-f7cc109ffada0a2031fbb3ef814f6b14140e7fa2.zip
Don't save control values for block output ports (fixes #868, "direction mismatch" errors on load).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4849 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 b865ec6c..e3781a01 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -472,6 +472,9 @@ Serialiser::Impl::serialise_port(const Node* port,
} else {
_world.log().warn("Control input has no value, lv2:default omitted.\n");
}
+ } else if (context != Resource::INTERNAL &&
+ !port->has_property(uris.rdf_type, uris.lv2_InputPort)) {
+ props.erase(uris.ingen_value);
}
serialise_properties(port_id, props);