summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 77ec41ca..bbafa44f 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -168,16 +168,7 @@ NodeModule::value_changed(uint32_t index, const Raul::Atom& value)
if (!_plugin_ui)
return;
- float float_val = 0.0f;
- const URIs& uris = app().uris();
-
- if (value.type() == uris.forge.Float) {
- float_val = value.get_float();
- _plugin_ui->port_event(index, 4, 0, &float_val);
- } else if (value.type() == uris.forge.String) {
- _plugin_ui->port_event(
- index, strlen(value.get_string()), 0, value.get_string());
- }
+ _plugin_ui->port_event(index, value.size(), value.type(), value.get_body());
}
void