diff options
author | David Robillard <d@drobilla.net> | 2012-12-22 23:56:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-12-22 23:56:51 +0000 |
commit | f7b865f9ff03b0796ba3c2732b69f70a24faa4d4 (patch) | |
tree | 92cd0adefa3b3b60d0aa6eff3d1717adad6cc48f | |
parent | 55731e738041c0b51a9a759dbf3d2347788a552d (diff) | |
download | ingen-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
-rw-r--r-- | src/gui/GraphPortModule.cpp | 5 |
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(); |