[gegl] set relative if animation contained relative data - mixed relative and not coordinates not supported



commit 20be2742004a7e96433897070579d4c6e60abbcc
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jul 7 14:52:09 2017 +0200

    set relative if animation contained relative data - mixed relative and not coordinates not supported in a 
single animation

 gegl/gegl-serialize.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index cd399a4..441a6ed 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -109,8 +109,17 @@ gegl_create_chain_argv (char      **ops,
               value[-1] = '\0';
               if (strstr (value, "rel"))
                 {
+                  char tmpbuf[1024];
+                  GQuark rel_quark;
                   gegl_path_append (path, 'L', g_strtod (key, NULL),
                                     make_rel (value));
+
+                  sprintf (tmpbuf, "%s-rel", prop);
+                  rel_quark = g_quark_from_string (tmpbuf);
+                  g_object_set_qdata_full (G_OBJECT (
+                                           new),
+                                           rel_quark,
+                                           g_strdup (value), g_free);
                 }
               else
                 {


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