From 3bb7c1a7eef744d17e436522a3dc0ed8527a427e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Jun 2006 00:32:15 +0000 Subject: Ditched ghetto homebrew RTTI in favour of the real deal; removed BridgeNode crap git-svn-id: http://svn.drobilla.net/lad/grauph@58 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ObjectSender.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/ObjectSender.cpp') diff --git a/src/libs/engine/ObjectSender.cpp b/src/libs/engine/ObjectSender.cpp index aec86e53..3bd725e0 100644 --- a/src/libs/engine/ObjectSender.cpp +++ b/src/libs/engine/ObjectSender.cpp @@ -33,10 +33,13 @@ namespace Om { void ObjectSender::send_all(ClientInterface* client) { - for (Tree::iterator i = om->object_store()->objects().begin(); + Patch* root = om->object_store()->find_patch("/"); + assert(root); + send_patch(client, root); + /*for (Tree::iterator i = om->object_store()->objects().begin(); i != om->object_store()->objects().end(); ++i) if ((*i)->as_patch() != NULL && (*i)->parent() == NULL) - send_patch(client, (*i)->as_patch()); + send_patch(client, (*i)->as_patch());*/ //(*i)->as_node()->send_creation_messages(client); } @@ -88,12 +91,12 @@ ObjectSender::send_node(ClientInterface* client, const Node* node) // perspective they don't even exist (just the ports they represent) // FIXME: hack, these nodes probably shouldn't even exist in the // engine anymore - if (const_cast(node)->as_port()) { // bridge node if as_port() returns non-NULL + /*if (const_cast(node)->as_port()) { // bridge node if as_port() returns non-NULL // FIXME: remove this whole thing. shouldn't be any bridge nodes anymore assert(false); send_port(client, const_cast(node)->as_port()); return; - } + }*/ const Plugin* const plugin = node->plugin(); -- cgit v1.2.1