[gimp/gimp-2-10] app: update drawable when committing Warp tool
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: update drawable when committing Warp tool
- Date: Mon, 3 Jun 2019 13:59:00 +0000 (UTC)
commit 186236ff350e2aafa44e326dc1f6becbdbbbc215
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.
(cherry picked from commit 2da5cb562d24f18dc4b4140d3111f5a6ea13740c)
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 8581deb061..3e0156c0a2 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]