[gimp] app: update drawable when committing Warp tool



commit 2da5cb562d24f18dc4b4140d3111f5a6ea13740c
Author: Ell <ell_se yahoo com>
Date:   Mon Jun 3 09:55:37 2019 -0400

    app: update drawable when committing Warp tool
    
    Make sure to update the drawable after committing the Warp tool, if
    high-quality-preview is disabled, and we use a non-nearest sampler.
    
    Necessary after commit d928a80b7faf48f637315b89eb6107647ff9d05b.

 app/tools/gimpwarptool.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 987bfd6a14..adc9a8994b 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -617,13 +617,7 @@ gimp_warp_tool_options_notify (GimpTool         *tool,
     }
   else if (! strcmp (pspec->name, "interpolation"))
     {
-      if (wt_options->high_quality_preview)
-        {
-          gimp_warp_tool_set_sampler (wt, /* commit = */ FALSE);
-
-          gimp_warp_tool_update_bounds (wt);
-          gimp_warp_tool_update_stroke (wt, NULL);
-        }
+      gimp_warp_tool_set_sampler (wt, /* commit = */ FALSE);
     }
   else if (! strcmp (pspec->name, "abyss-policy"))
     {
@@ -639,9 +633,6 @@ gimp_warp_tool_options_notify (GimpTool         *tool,
   else if (! strcmp (pspec->name, "high-quality-preview"))
     {
       gimp_warp_tool_set_sampler (wt, /* commit = */ FALSE);
-
-      gimp_warp_tool_update_bounds (wt);
-      gimp_warp_tool_update_stroke (wt, NULL);
     }
 }
 
@@ -1001,6 +992,9 @@ gimp_warp_tool_set_sampler (GimpWarpTool *wt,
       gegl_node_set (wt->render_node,
                      "sampler-type", sampler,
                      NULL);
+
+      gimp_warp_tool_update_bounds (wt);
+      gimp_warp_tool_update_stroke (wt, NULL);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]