[gegl] motion-blur-zoom: limit value range to -10.0 to 10.0
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] motion-blur-zoom: limit value range to -10.0 to 10.0
- Date: Sun, 7 Jul 2019 13:55:39 +0000 (UTC)
commit 2eb48cafb5492e08a7a8b38dab6f833cb2f4aace
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jul 7 15:36:50 2019 +0200
motion-blur-zoom: limit value range to -10.0 to 10.0
There are existing tutorials that expect the user to enter absolute pixel
values rather than relative values which this operation expects. Limiting
to -10.0 to 10.0 encompasses all coordinats within image as well as enough
outside on each side to make it unlikely intentional parameters. The ui
range is already limited to 0.0-1.0
Fixes issue #174
operations/common-gpl3+/motion-blur-zoom.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/operations/common-gpl3+/motion-blur-zoom.c b/operations/common-gpl3+/motion-blur-zoom.c
index 8e4a6c9ec..ca2cced5a 100644
--- a/operations/common-gpl3+/motion-blur-zoom.c
+++ b/operations/common-gpl3+/motion-blur-zoom.c
@@ -38,11 +38,13 @@
#ifdef GEGL_PROPERTIES
property_double (center_x, _("Center X"), 0.5)
+ value_range (-10.0, 10.0)
ui_range (0.0, 1.0)
ui_meta ("unit", "relative-coordinate")
ui_meta ("axis", "x")
property_double (center_y, _("Center Y"), 0.5)
+ value_range (-10.0, 10.0)
ui_range (0.0, 1.0)
ui_meta ("unit", "relative-coordinate")
ui_meta ("axis", "y")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]