[gimp/soc-2011-warp: 25/56] gimpwarptool: build a stroke to pass to the op



commit 26428f7df184585e8e78e9ce6f632f7b6c2ff156
Author: Michael Murà <batolettre gmail com>
Date:   Tue Jun 14 23:49:58 2011 +0200

    gimpwarptool: build a stroke to pass to the op

 app/tools/gimpwarptool.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 12877ab..9bf64e2 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -332,6 +332,9 @@ gimp_warp_tool_motion (GimpTool         *tool,
 
   gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
 
+  gegl_path_append (wt->current_stroke,
+                    'M', coords->x, coords->y);
+
   gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
 }
 
@@ -398,6 +401,9 @@ gimp_warp_tool_button_release (GimpTool              *tool,
 
   gimp_tool_control_halt (tool->control);
 
+  printf ("%s\n", gegl_path_to_string (wt->current_stroke));
+  gimp_warp_tool_image_map_update (wt);
+
   if (release_type == GIMP_BUTTON_RELEASE_CANCEL)
     {
     }



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