diff options
author | David Robillard <d@drobilla.net> | 2007-09-20 03:33:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-20 03:33:33 +0000 |
commit | c4a88de11f5a4c08418523a1f0fd0634b2f56857 (patch) | |
tree | bd94411c87e5c2b8cdb25bad49141cfcf08f97d8 /src/libs/client | |
parent | 8e747504412c62f27c599f3f5e001ff3e2e36a82 (diff) | |
download | ingen-c4a88de11f5a4c08418523a1f0fd0634b2f56857.tar.gz ingen-c4a88de11f5a4c08418523a1f0fd0634b2f56857.tar.bz2 ingen-c4a88de11f5a4c08418523a1f0fd0634b2f56857.zip |
Fix serialization of node polyphonic value.
Fix loading of patches with more than one node (whoops...).
git-svn-id: http://svn.drobilla.net/lad/ingen@738 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/NodeModel.cpp | 12 | ||||
-rw-r--r-- | src/libs/client/NodeModel.hpp | 2 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp index 55f1217b..c7b38ceb 100644 --- a/src/libs/client/NodeModel.cpp +++ b/src/libs/client/NodeModel.cpp @@ -26,17 +26,15 @@ namespace Client { NodeModel::NodeModel(SharedPtr<PluginModel> plugin, const Path& path, bool polyphonic) - - : ObjectModel(path, polyphonic), - _polyphonic(polyphonic), - _plugin_uri(plugin->uri()), - _plugin(plugin) + : ObjectModel(path, polyphonic) + , _plugin_uri(plugin->uri()) + , _plugin(plugin) { } NodeModel::NodeModel(const string& plugin_uri, const Path& path, bool polyphonic) -: ObjectModel(path, polyphonic), - _plugin_uri(plugin_uri) + : ObjectModel(path, polyphonic) + , _plugin_uri(plugin_uri) { } diff --git a/src/libs/client/NodeModel.hpp b/src/libs/client/NodeModel.hpp index 3c110099..fb88e2f0 100644 --- a/src/libs/client/NodeModel.hpp +++ b/src/libs/client/NodeModel.hpp @@ -56,7 +56,6 @@ public: SharedPtr<PluginModel> plugin() const { return _plugin; } int num_ports() const { return _ports.size(); } const PortModelList& ports() const { return _ports; } - virtual bool polyphonic() const { return _polyphonic; } void port_value_range(SharedPtr<PortModel> port, float& min, float& max); @@ -81,7 +80,6 @@ protected: virtual void clear(); - bool _polyphonic; PortModelList _ports; ///< List of ports (not a Table to preserve order) string _plugin_uri; ///< Plugin URI (if PluginModel is unknown) SharedPtr<PluginModel> _plugin; ///< The plugin this node is an instance of |