From cf73a281456738c3e560d6ef60a7eb211f829e79 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 18 Feb 2024 19:21:31 +0000 Subject: [PATCH] python: Fix Spyro-Gimp Long Gradient option Resolves #10873. We needed to update a Gimp.RGB object to Gegl.Color in order for the Long Gradient option to work properly. --- plug-ins/python/spyro-plus.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plug-ins/python/spyro-plus.py b/plug-ins/python/spyro-plus.py index c37eb1b177..446c5518aa 100755 --- a/plug-ins/python/spyro-plus.py +++ b/plug-ins/python/spyro-plus.py @@ -926,11 +926,8 @@ class ComputedParameters: def get_color(self, n): colors = self.gradients[4*n:4*(n+1)] - color = Gimp.RGB() - color.r = colors[0] - color.g = colors[1] - color.b = colors[2] - color.a = colors[3] + color = Gegl.Color.new("black") + color.set_rgba(colors[0], colors[1], colors[2], colors[3]) return color def next_drawing(self):