mirror of https://github.com/GNOME/gimp.git
plug-ins: script-fu-paste-as-new-pattern, adjusted call to (file-pat-export)
This commit is contained in:
parent
44a87140d5
commit
fa70b794e2
|
@ -20,12 +20,10 @@
|
|||
|
||||
(define (script-fu-paste-as-pattern name filename)
|
||||
(let* ((pattern-image (car (gimp-edit-paste-as-new-image)))
|
||||
(pattern-draw 0)
|
||||
(path 0))
|
||||
|
||||
(if (= TRUE (car (gimp-image-is-valid pattern-image)))
|
||||
(if (= TRUE (car (gimp-image-id-is-valid pattern-image)))
|
||||
(begin
|
||||
(set! pattern-draw (aref (cadr (gimp-image-get-selected-drawables pattern-image)) 0))
|
||||
(set! path (string-append gimp-directory
|
||||
"/patterns/"
|
||||
filename
|
||||
|
@ -34,7 +32,6 @@
|
|||
|
||||
(file-pat-export RUN-NONINTERACTIVE
|
||||
pattern-image
|
||||
1 (vector pattern-draw)
|
||||
path
|
||||
name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue