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:
@ -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)
|
||||
|
Reference in New Issue
Block a user