python: Fix spyro-gimp Preview tool

Gimp.context_get_foreground() no longer returns a Boolean
as a first output, so we need to remove it from the assignment
line.
This commit is contained in:
Alx Sa
2024-02-17 00:02:25 +00:00
parent 017b82b0d5
commit a0990e324d

View File

@ -580,7 +580,7 @@ class PreviewTool:
# Implementation using pencil. (A previous implementation using stroke was slower, and thus removed).
def draw(self, layer, strokes, color=None):
success, foreground = Gimp.context_get_foreground()
foreground = Gimp.context_get_foreground()
Gimp.context_push()
Gimp.context_set_defaults()
Gimp.context_set_foreground(foreground)