[gegl] process: Call prepare for meta-ops
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] process: Call prepare for meta-ops
- Date: Sat, 23 Jan 2016 13:34:59 +0000 (UTC)
commit 21f3b8c8d11152369b01c6c7c04de073244cb0ad
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 14 16:24:15 2016 +0100
process: Call prepare for meta-ops
https://bugzilla.gnome.org/show_bug.cgi?id=760628
gegl/process/gegl-graph-traversal.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gegl/process/gegl-graph-traversal.c b/gegl/process/gegl-graph-traversal.c
index bd481d1..7af3071 100644
--- a/gegl/process/gegl-graph-traversal.c
+++ b/gegl/process/gegl-graph-traversal.c
@@ -167,6 +167,7 @@ gegl_graph_prepare (GeglGraphTraversal *path)
for (list_iter = path->dfs_path; list_iter; list_iter = list_iter->next)
{
GeglNode *node = GEGL_NODE (list_iter->data);
+ GeglNode *parent;
GeglOperation *operation = node->operation;
g_mutex_lock (&node->mutex);
@@ -183,6 +184,13 @@ gegl_graph_prepare (GeglGraphTraversal *path)
g_mutex_unlock (&node->mutex);
+ parent = gegl_node_get_parent (node);
+ while (parent != NULL && parent->operation != NULL)
+ {
+ gegl_operation_prepare (parent->operation);
+ parent = gegl_node_get_parent (parent);
+ }
+
if (!g_hash_table_contains (path->contexts, node))
{
GeglOperationContext *context = gegl_operation_context_new (node->operation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]