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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index b9798339..0bacb70b 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -186,7 +186,8 @@ NodeModule::port_value_changed(uint32_t index, const Atom& value)
return;
}
- if (value.type() == uris.atom_Float) {
+ if (value.type() == uris.atom_Float &&
+ _block->get_port(index)->is_numeric()) {
_plugin_ui->port_event(index, sizeof(float), 0, value.ptr<float>());
} else {
_plugin_ui->port_event(index,