[gimp/soc-2012-unified-transformation: 50/52] transformtool: We show corrective preview for selections and paths, so why not drawables
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2012-unified-transformation: 50/52] transformtool: We show corrective preview for selections and paths, so why not drawables
- Date: Sat, 18 Aug 2012 17:31:47 +0000 (UTC)
commit a336eedfb6073c0a7085352e8a9a301a5a9f56b9
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Aug 15 01:40:20 2012 +0200
transformtool: We show corrective preview for selections and paths, so why not drawables
app/tools/gimptransformoptions.c | 3 +--
app/tools/gimptransformtool.c | 7 ++++++-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c
index 883e091..8a5a20c 100644
--- a/app/tools/gimptransformoptions.c
+++ b/app/tools/gimptransformoptions.c
@@ -553,8 +553,7 @@ gimp_transform_options_show_preview (GimpTransformOptions *options)
g_return_val_if_fail (GIMP_IS_TRANSFORM_OPTIONS (options), FALSE);
return (options->show_preview &&
- options->type == GIMP_TRANSFORM_TYPE_LAYER &&
- options->direction == GIMP_TRANSFORM_FORWARD);
+ options->type == GIMP_TRANSFORM_TYPE_LAYER);
}
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 38b9bd9..1230094 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -782,9 +782,14 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
{
if (gimp_transform_options_show_preview (options))
{
+ GimpMatrix3 matrix = tr_tool->transform;
+
+ if (options->direction == GIMP_TRANSFORM_BACKWARD)
+ gimp_matrix3_invert (&matrix);
+
gimp_draw_tool_add_transform_preview (draw_tool,
tool->drawable,
- &tr_tool->transform,
+ &matrix,
tr_tool->x1,
tr_tool->y1,
tr_tool->x2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]