From 681fc6bcb59fb959594af6b9694112d4fd493eb0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Dec 2013 03:42:30 +0000 Subject: 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 --- src/gui/GraphPortModule.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') 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(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)); -- cgit v1.2.1