Commit 928e5957 authored by Ell's avatar Ell

app: in gimp-gegl-nodes, set underlying operation

In the vairous gimp_gegl_create_foo_node() functions, set the
parent node's underlying operation node, so that
gimp_gegl_apply_cached_operation() avoids duplicating the source
buffer when applying these nodes (all underlying operations are
currently point ops.)
parent f760a333
......@@ -64,6 +64,8 @@ gimp_gegl_create_flatten_node (const GimpRGB *background,
NULL);
g_object_unref (c);
gimp_gegl_node_set_underlying_operation (node, color);
mode = gegl_node_new_child (node,
"operation", "gimp:normal",
NULL);
......@@ -107,6 +109,8 @@ gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
"value", opacity,
NULL);
gimp_gegl_node_set_underlying_operation (node, opacity_node);
mask_source = gimp_gegl_add_buffer_source (node, mask,
mask_offset_x,
mask_offset_y);
......
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