[gimp/soc-2010-cage-2] gimpcagetool: the cage can be closed only if the number of point is 3 or more
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] gimpcagetool: the cage can be closed only if the number of point is 3 or more
- Date: Sun, 8 Aug 2010 11:43:52 +0000 (UTC)
commit e141953d35397bc7cd96c5309bcfc8cc4249001e
Author: Michael Muré <batolettre gmail com>
Date: Thu Jul 22 10:38:12 2010 +0200
gimpcagetool: the cage can be closed only if the number of point is 3 or more
app/tools/gimpcagetool.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 0cc49df..e3aaf2c 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -259,7 +259,7 @@ gimp_cage_tool_button_press (GimpTool *tool,
}
// user is clicking on the first handle, we close the cage and switch to deform mode
- if (ct->handle_moved == 0)
+ if (ct->handle_moved == 0 && cage->cage_vertice_number > 2)
{
ct->cage_complete = TRUE;
gimp_cage_tool_switch_to_deform (ct);
@@ -557,5 +557,7 @@ gimp_cage_tool_process (GimpCageTool *ct,
gimp_drawable_apply_operation (drawable, progress, _("Cage transform"),
node, TRUE);
g_object_unref (node);
+
+ // TODO: flush
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]