From f7cc109ffada0a2031fbb3ef814f6b14140e7fa2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Nov 2012 05:26:09 +0000 Subject: 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 --- src/serialisation/Serialiser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/serialisation') 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); -- cgit v1.2.1