[gimp] cage tool: fix transformed area going away when setting a cage, going back to edit mode, edit the ca
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] cage tool: fix transformed area going away when setting a cage, going back to edit mode, edit the ca
- Date: Mon, 4 Apr 2011 22:06:08 +0000 (UTC)
commit ec25c6be4297f2a588ce52b5f180502d5c3c44b3
Author: Michael Muré <batolettre gmail com>
Date: Mon Apr 4 21:35:18 2011 +0200
cage tool: fix transformed area going away when setting a cage,
going back to edit mode, edit the cage then going to deform mode
app/tools/gimpcagetool.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 7872bab..65b8808 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -347,14 +347,15 @@ gimp_cage_tool_options_notify (GimpTool *tool,
_("Press ENTER to commit the transform"));
ct->tool_state = DEFORM_STATE_WAIT;
- if (ct->dirty_coef)
+ if (! ct->render_node)
{
- gimp_cage_tool_compute_coef (ct, tool->display);
+ gimp_cage_tool_create_render_node (ct);
}
- if (! ct->render_node)
+ if (ct->dirty_coef)
{
- gimp_cage_tool_create_render_node (ct);
+ gimp_cage_tool_compute_coef (ct, tool->display);
+ gimp_cage_tool_render_node_update (ct);
}
if (! ct->image_map)
@@ -1146,7 +1147,7 @@ gimp_cage_tool_render_node_update (GimpCageTool *ct)
"buffer", &buffer,
NULL);
- if (option_fill != node_fill)
+ if (buffer != ct->coef)
{
gegl_node_set (ct->coef_node,
"buffer", ct->coef,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]