[gegl] noise-hurl: propagate space



commit 4aac0817cd5279e6484e27a7dcfeb150ee63caff
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 22:50:24 2018 +0200

    noise-hurl: propagate space

 operations/common/noise-hurl.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-hurl.c b/operations/common/noise-hurl.c
index 94f6a0bac..3146d4c40 100644
--- a/operations/common/noise-hurl.c
+++ b/operations/common/noise-hurl.c
@@ -47,11 +47,14 @@ property_seed (seed, _("Random seed"), rand)
 static void
 prepare (GeglOperation *operation)
 {
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
   const Babl *input_format = gegl_operation_get_source_format (operation, "input");
   GeglProperties *o        = GEGL_PROPERTIES (operation);
 
-  gegl_operation_set_format (operation, "input" , babl_format ("R'G'B'A float"));
-  gegl_operation_set_format (operation, "output", babl_format ("R'G'B'A float"));
+  gegl_operation_set_format (operation, "input" ,
+                             babl_format_with_space ("R'G'B'A float", space));
+  gegl_operation_set_format (operation, "output",
+                             babl_format_with_space ("R'G'B'A float", space));
 
   if (input_format)
     {


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