From 33f66f46c1f1e9774e5b59a9637d2bfabd700394 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 18 Sep 2007 02:22:39 +0000 Subject: Fix possibility of partially compiled patches. git-svn-id: http://svn.drobilla.net/lad/ingen@719 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/Patch.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libs/engine') diff --git a/src/libs/engine/Patch.cpp b/src/libs/engine/Patch.cpp index 09c638e9..a03f2415 100644 --- a/src/libs/engine/Patch.cpp +++ b/src/libs/engine/Patch.cpp @@ -388,6 +388,13 @@ Patch::compile() const compile_recursive(node, compiled_patch); } + // Traverse any nodes we didn't hit yet + for (Raul::List::const_iterator i = _nodes.begin(); i != _nodes.end(); ++i) { + Node* const node = (*i); + if ( ! node->traversed()) + compile_recursive(node, compiled_patch); + } + /*cerr << "----------------------------------------\n"; for (size_t i=0; i < process_order->size(); ++i) { assert(process_order->at(i)); -- cgit v1.2.1