diff options
author | David Robillard <d@drobilla.net> | 2013-12-19 03:42:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-19 03:42:30 +0000 |
commit | 681fc6bcb59fb959594af6b9694112d4fd493eb0 (patch) | |
tree | afb426be74b4bfd5a2cc4a9dc387b4088dbb6773 /src/gui | |
parent | 73f6522b1c60286d35aa64739664273119fb6eb3 (diff) | |
download | ingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.tar.gz ingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.tar.bz2 ingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.zip |
FDGL: Improve flow-directed layout.
Allow apps to specify nodes as sources to improve layout.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5186 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphPortModule.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp index 77d8a6fe..9f403d6b 100644 --- a/src/gui/GraphPortModule.cpp +++ b/src/gui/GraphPortModule.cpp @@ -52,6 +52,9 @@ GraphPortModule::GraphPortModule(GraphCanvas& canvas, assert(dynamic_ptr_cast<const GraphModel>(model->parent())); set_stacked(model->polyphonic()); + if (model->is_input()) { + set_is_source(true); + } model->signal_property().connect( sigc::mem_fun(this, &GraphPortModule::property_changed)); |