gegl r3054 - in trunk: . gegl/process



Author: martinn
Date: Mon Apr 13 13:34:30 2009
New Revision: 3054
URL: http://svn.gnome.org/viewvc/gegl?rev=3054&view=rev

Log:
gegl: Meta-op quickfix

Temporarily restore the removed code in gegl-prepare-visitor.c by the
commit r3032 to make meta op processing work again.

Modified:
   trunk/ChangeLog
   trunk/gegl/process/gegl-prepare-visitor.c

Modified: trunk/gegl/process/gegl-prepare-visitor.c
==============================================================================
--- trunk/gegl/process/gegl-prepare-visitor.c	(original)
+++ trunk/gegl/process/gegl-prepare-visitor.c	Mon Apr 13 13:34:30 2009
@@ -69,6 +69,25 @@
     g_warning ("hmm");
   gegl_node_add_context (node, self->context_id);
 
+  /* prepare the operation for the coming evaluation (all properties
+   * should be set now).
+   */
+  {
+    const gchar *name = gegl_node_get_name (node);
+    if (name && !strcmp (name, "proxynop-output"))
+      {
+        GeglGraph *graph = g_object_get_data (G_OBJECT (node), "graph");
+        g_assert (graph);
+        if (GEGL_NODE (graph)->operation)
+          {
+            /* issuing a prepare on the graph, FIXME: we might need to do
+             * a cycle of prepares as deep as the nesting of graphs,.
+             * (or find a better way to do this) */
+            gegl_operation_prepare (GEGL_NODE (graph)->operation);
+          }
+      }
+  }
+
   gegl_operation_prepare (operation);
   {
     /* initialise the "needed rectangle" to an empty one */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]