cage tool: fix transformed area going away when setting a cage,

going back to edit mode, edit the cage then going to deform mode
This commit is contained in:
Michael Muré 2011-04-04 21:35:18 +02:00
parent eda5cdf666
commit ec25c6be42
1 changed files with 7 additions and 6 deletions

View File

@ -347,16 +347,17 @@ gimp_cage_tool_options_notify (GimpTool *tool,
_("Press ENTER to commit the transform"));
ct->tool_state = DEFORM_STATE_WAIT;
if (ct->dirty_coef)
{
gimp_cage_tool_compute_coef (ct, tool->display);
}
if (! ct->render_node)
{
gimp_cage_tool_create_render_node (ct);
}
if (ct->dirty_coef)
{
gimp_cage_tool_compute_coef (ct, tool->display);
gimp_cage_tool_render_node_update (ct);
}
if (! ct->image_map)
{
GimpImage *image = gimp_display_get_image (tool->display);
@ -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,