Commit e74994fe authored by Ell's avatar Ell

pdb: in plug_in_compat.pdb, set underlying op nodes

In plug_in_compat.pdb, when wrapping an op node inside a graph, set
the op node as the graph node's underlying operation.  This allows
gimp_gegl_apply_operation() to perform certain optimizations.
parent 8b7bafa4
Pipeline #141569 passed with stages
in 27 minutes and 33 seconds
......@@ -72,6 +72,8 @@ wrap_in_graph (GeglNode *node)
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......@@ -105,6 +107,8 @@ wrap_in_selection_bounds (GeglNode *node,
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......@@ -168,6 +172,8 @@ wrap_in_gamma_cast (GeglNode *node,
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......
......@@ -5081,6 +5081,8 @@ wrap_in_graph (GeglNode *node)
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......@@ -5114,6 +5116,8 @@ wrap_in_selection_bounds (GeglNode *node,
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......@@ -5177,6 +5181,8 @@ wrap_in_gamma_cast (GeglNode *node,
gegl_node_add_child (new_node, node);
g_object_unref (node);
gimp_gegl_node_set_underlying_operation (new_node, node);
input = gegl_node_get_input_proxy (new_node, "input");
output = gegl_node_get_output_proxy (new_node, "output");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment