diff options
Diffstat (limited to 'src/client/BlockModel.cpp')
-rw-r--r-- | src/client/BlockModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp index 13b15012..67261dba 100644 --- a/src/client/BlockModel.cpp +++ b/src/client/BlockModel.cpp @@ -174,7 +174,7 @@ BlockModel::default_port_value_range(SPtr<const PortModel> port, max = 1.0; // Get range from client-side LV2 data - if (_plugin && _plugin->type() == PluginModel::LV2 && _plugin->lilv_plugin()) { + if (_plugin && _plugin->lilv_plugin()) { if (!_min_values) { _num_values = lilv_plugin_get_num_ports(_plugin->lilv_plugin()); _min_values = new float[_num_values]; @@ -243,7 +243,7 @@ BlockModel::port_label(SPtr<const PortModel> port) const return name.ptr<char>(); } - if (_plugin && _plugin->type() == PluginModel::LV2) { + if (_plugin && _plugin->lilv_plugin()) { LilvWorld* w = _plugin->lilv_world(); const LilvPlugin* plug = _plugin->lilv_plugin(); LilvNode* sym = lilv_new_string(w, port->symbol().c_str()); |