summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/gui/Port.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp
index b02c0856..04d45f1d 100644
--- a/src/libs/gui/Port.cpp
+++ b/src/libs/gui/Port.cpp
@@ -108,9 +108,13 @@ Port::activity()
void
Port::set_control(float value, bool signal)
{
+ if (_port_model->type() != DataType::CONTROL && _port_model->type() != DataType::AUDIO)
+ return;
+
if (signal)
App::instance().engine()->set_port_value_immediate(_port_model->path(), "ingen:control",
sizeof(float), &value);
+
FlowCanvas::Port::set_control(value);
}