From dd2d0c96bfb6c36c1dee0dbedc341ccf6bc646ad Mon Sep 17 00:00:00 2001 From: bootchk Date: Sun, 10 Dec 2023 06:03:15 -0500 Subject: [PATCH] Fix a test plugin. 1. Recent changes to arg validation reveal bug in call to gimp-drawable-edit-gradient-fill, supersampling arg must be >0 2. Make easier for testers to invoke by reducing the declared drawable capability to SF-ONE-OR-MORE-DRAWABLE --- plug-ins/script-fu/scripts/test-sphere-v3.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plug-ins/script-fu/scripts/test-sphere-v3.scm b/plug-ins/script-fu/scripts/test-sphere-v3.scm index c7d4d4ef3e..1d9d06a0fd 100644 --- a/plug-ins/script-fu/scripts/test-sphere-v3.scm +++ b/plug-ins/script-fu/scripts/test-sphere-v3.scm @@ -95,7 +95,7 @@ (gimp-context-set-gradient-fg-bg-rgb) (gimp-drawable-edit-gradient-fill drawable GRADIENT-RADIAL offset - FALSE 0 0 + FALSE 1 1 TRUE light-x light-y light-end-x light-end-y) @@ -108,7 +108,7 @@ (gimp-context-set-gradient-reverse gradient-reverse) (gimp-drawable-edit-gradient-fill drawable GRADIENT-LINEAR offset - FALSE 0 0 + FALSE 1 1 TRUE 10 10 30 60) @@ -141,7 +141,7 @@ "Spencer Kimball" "1996, 1998" "*" ; image types any - SF-TWO-OR-MORE-DRAWABLE ; v3 >>> additional argument + SF-ONE-OR-MORE-DRAWABLE ; v3 >>> additional argument SF-ADJUSTMENT "Radius (in pixels)" (list 100 1 5000 1 10 0 SF-SPINNER) SF-ADJUSTMENT "Lighting (degrees)" (list 45 0 360 1 10 1 SF-SLIDER) SF-TOGGLE "Shadow" TRUE