summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-22 23:56:51 +0000
committerDavid Robillard <d@drobilla.net>2012-12-22 23:56:51 +0000
commitf7b865f9ff03b0796ba3c2732b69f70a24faa4d4 (patch)
tree92cd0adefa3b3b60d0aa6eff3d1717adad6cc48f /src/gui
parent55731e738041c0b51a9a759dbf3d2347788a552d (diff)
downloadingen-f7b865f9ff03b0796ba3c2732b69f70a24faa4d4.tar.gz
ingen-f7b865f9ff03b0796ba3c2732b69f70a24faa4d4.tar.bz2
ingen-f7b865f9ff03b0796ba3c2732b69f70a24faa4d4.zip
Add mirror input for patch control inputs so they are controllable from the canvas.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4888 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/GraphPortModule.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp
index d819a68a..d000ae36 100644
--- a/src/gui/GraphPortModule.cpp
+++ b/src/gui/GraphPortModule.cpp
@@ -68,6 +68,11 @@ GraphPortModule::create(GraphCanvas& canvas,
GraphPortModule* ret = new GraphPortModule(canvas, model);
Port* port = Port::create(canvas.app(), *ret, model, human, true);
+ if (model->is_numeric() && model->is_input()) {
+ // Add non-mirrored input so control port can be controlled from canvas
+ Port::create(canvas.app(), *ret, model, human, false);
+ }
+
ret->set_port(port);
for (Resource::Properties::const_iterator m = model->properties().begin();