[gimp] pdb: normalize the compat motion blurs' angles to -180..180
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pdb: normalize the compat motion blurs' angles to -180..180
- Date: Sun, 18 May 2014 20:35:14 +0000 (UTC)
commit c452f12519f00e22fa9ef9b46316ac66b4f90d1d
Author: Michael Natterer <mitch gimp org>
Date: Sun May 18 22:32:03 2014 +0200
pdb: normalize the compat motion blurs' angles to -180..180
app/pdb/plug-in-compat-cmds.c | 3 +++
tools/pdbgen/pdb/plug_in_compat.pdb | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index 79a2dab..ec26e65 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -1121,6 +1121,9 @@ plug_in_mblur_invoker (GimpProcedure *procedure,
{
GeglNode *node = NULL;
+ if (angle > 180.0)
+ angle -= 360.0;
+
if (type == 0)
{
node = gegl_node_new_child (NULL,
diff --git a/tools/pdbgen/pdb/plug_in_compat.pdb b/tools/pdbgen/pdb/plug_in_compat.pdb
index 440965f..11aae37 100644
--- a/tools/pdbgen/pdb/plug_in_compat.pdb
+++ b/tools/pdbgen/pdb/plug_in_compat.pdb
@@ -1164,6 +1164,9 @@ HELP
{
GeglNode *node = NULL;
+ if (angle > 180.0)
+ angle -= 360.0;
+
if (type == 0)
{
node = gegl_node_new_child (NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]