Commit f931a023 authored by Daniel Sabo's avatar Daniel Sabo

Mark node->cache as forked

parent a2c6421f
......@@ -1802,6 +1802,8 @@ gegl_node_get_cache (GeglNode *node)
"format", format,
NULL);
gegl_object_set_has_forked (G_OBJECT (node->cache));
gegl_node_get_bounding_box (node);
gegl_buffer_set_extent (GEGL_BUFFER (node->cache), &node->have_rect);
......
......@@ -25,7 +25,7 @@
#include "gegl.h"
#include "gegl-types-internal.h"
#include "gegl-cache.h"
#include "gegl-debug.h"
#include "gegl-operation.h"
#include "gegl-operations.h"
#include "gegl-operation-context.h"
......@@ -179,13 +179,12 @@ gboolean gegl_can_do_inplace_processing (GeglOperation *operation,
GeglBuffer *input,
const GeglRectangle *result)
{
if (!input ||
GEGL_IS_CACHE (input))
if (!input)
return FALSE;
if (gegl_object_get_has_forked (G_OBJECT (input)))
return FALSE;
if (input->format == gegl_operation_get_format (operation, "output") &&
if (gegl_buffer_get_format (input) == gegl_operation_get_format (operation, "output") &&
gegl_rectangle_contains (gegl_buffer_get_extent (input), result))
return TRUE;
return FALSE;
......
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