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.
This commit is contained in:
Alx Sa 2024-02-18 19:21:31 +00:00
parent dfad2a3028
commit cf73a28145
1 changed files with 2 additions and 5 deletions

View File

@ -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):