[gimp] gimpwarptool: build a stroke to pass to the op
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] gimpwarptool: build a stroke to pass to the op
- Date: Tue, 21 May 2013 21:46:19 +0000 (UTC)
commit eea8ff4ebc3ac678281bbca8785c977910283abb
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 9d14da7..c263ce6 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -330,6 +330,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));
}
@@ -396,6 +399,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]