mirror of https://github.com/GNOME/gimp.git
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:
parent
eda5cdf666
commit
ec25c6be42
|
@ -347,16 +347,17 @@ gimp_cage_tool_options_notify (GimpTool *tool,
|
||||||
_("Press ENTER to commit the transform"));
|
_("Press ENTER to commit the transform"));
|
||||||
ct->tool_state = DEFORM_STATE_WAIT;
|
ct->tool_state = DEFORM_STATE_WAIT;
|
||||||
|
|
||||||
if (ct->dirty_coef)
|
|
||||||
{
|
|
||||||
gimp_cage_tool_compute_coef (ct, tool->display);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! ct->render_node)
|
if (! ct->render_node)
|
||||||
{
|
{
|
||||||
gimp_cage_tool_create_render_node (ct);
|
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)
|
if (! ct->image_map)
|
||||||
{
|
{
|
||||||
GimpImage *image = gimp_display_get_image (tool->display);
|
GimpImage *image = gimp_display_get_image (tool->display);
|
||||||
|
@ -1146,7 +1147,7 @@ gimp_cage_tool_render_node_update (GimpCageTool *ct)
|
||||||
"buffer", &buffer,
|
"buffer", &buffer,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (option_fill != node_fill)
|
if (buffer != ct->coef)
|
||||||
{
|
{
|
||||||
gegl_node_set (ct->coef_node,
|
gegl_node_set (ct->coef_node,
|
||||||
"buffer", ct->coef,
|
"buffer", ct->coef,
|
||||||
|
|
Loading…
Reference in New Issue