mirror of https://github.com/GNOME/gimp.git
Fix #8091 ScriptFu scripts use v3 API for drawables in calls to file procedures
This change is part of multilayer select feature of v3. Only fixes ScriptFu plugins, not Python or C. Only fixes calls to file load/save procedures and other plugins already multilayer capable. Any future PDB procedures changed to have multilayer signature will require changes to all callers. The new code is verbose: "drawable" => "1 (vector drawable)" Issue 5919 proposes a change to the PDB that would make this less verbose: "drawable" => (vector drawable)" (without the number of drawables) Tested that changed procedures will interpret without syntax errors, on one path. Did not test each changed procedure for functional correctness.
This commit is contained in:
parent
09dfb3b05b
commit
a1f0757ee7
|
@ -267,7 +267,7 @@
|
|||
(gimp-file-save
|
||||
RUN-NONINTERACTIVE
|
||||
sheet-img
|
||||
sheet-layer
|
||||
1 (vector sheet-layer)
|
||||
(string-append dir DIR-SEPARATOR
|
||||
"index" (number->string sheet-num) ".jpg")
|
||||
)
|
||||
|
@ -292,7 +292,7 @@
|
|||
(gimp-file-save
|
||||
RUN-NONINTERACTIVE
|
||||
sheet-img
|
||||
sheet-layer
|
||||
1 (vector sheet-layer)
|
||||
(string-append dir DIR-SEPARATOR
|
||||
"index" (number->string sheet-num) ".jpg")
|
||||
)
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
(gimp-context-set-foreground (list fg-color fg-color fg-color))
|
||||
(gimp-context-set-background (list bg-color bg-color bg-color))
|
||||
(plug-in-checkerboard RUN-NONINTERACTIVE img drawable 0 8)
|
||||
(plug-in-checkerboard RUN-NONINTERACTIVE img 1 (vector drawable) 0 8)
|
||||
|
||||
(gimp-context-pop)
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
(gimp-context-set-background '(0 0 0))
|
||||
(gimp-drawable-edit-fill drawable FILL-BACKGROUND)
|
||||
|
||||
(file-gbr-save 1 img drawable filename spacing name)
|
||||
(file-gbr-save 1 img 1 (vector drawable) filename spacing name)
|
||||
(gimp-image-delete img)
|
||||
|
||||
(gimp-context-pop)
|
||||
|
@ -119,7 +119,7 @@
|
|||
(gimp-context-set-background '(0 0 0))
|
||||
(gimp-drawable-edit-fill drawable FILL-BACKGROUND)
|
||||
|
||||
(file-gbr-save 1 img drawable filename spacing name)
|
||||
(file-gbr-save 1 img 1 (vector drawable) filename spacing name)
|
||||
(gimp-image-delete img)
|
||||
|
||||
(gimp-context-pop)
|
||||
|
@ -175,7 +175,7 @@
|
|||
|
||||
(gimp-drawable-edit-fill drawable FILL-BACKGROUND)
|
||||
|
||||
(file-gbr-save 1 img drawable filename spacing name)
|
||||
(file-gbr-save 1 img 1 (vector drawable) filename spacing name)
|
||||
(gimp-image-delete img)
|
||||
|
||||
(gimp-context-pop)
|
||||
|
@ -244,7 +244,7 @@
|
|||
(gimp-context-set-background '(0 0 0))
|
||||
(gimp-drawable-edit-fill drawable FILL-BACKGROUND)
|
||||
|
||||
(file-gbr-save 1 img drawable filename spacing name)
|
||||
(file-gbr-save 1 img 1 (vector drawable) filename spacing name)
|
||||
(gimp-image-delete img)
|
||||
|
||||
(gimp-context-pop)
|
||||
|
|
|
@ -45,7 +45,9 @@
|
|||
)
|
||||
|
||||
(file-gbr-save RUN-NONINTERACTIVE
|
||||
brush-image brush-draw path
|
||||
brush-image
|
||||
1 (vector brush-draw)
|
||||
path
|
||||
spacing name)
|
||||
|
||||
(gimp-image-delete brush-image)
|
||||
|
|
|
@ -33,7 +33,9 @@
|
|||
".pat"))
|
||||
|
||||
(file-pat-save RUN-NONINTERACTIVE
|
||||
pattern-image pattern-draw path
|
||||
pattern-image
|
||||
1 (vector pattern-draw)
|
||||
path
|
||||
name)
|
||||
|
||||
(gimp-image-delete pattern-image)
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
(number->string image)
|
||||
".pat"))
|
||||
|
||||
(file-pat-save 1 pattern-image pattern-draw filename2 desc)
|
||||
(file-pat-save 1 pattern-image 1 (vector pattern-draw) filename2 desc)
|
||||
(gimp-patterns-refresh)
|
||||
(gimp-context-set-pattern desc)
|
||||
|
||||
|
|
|
@ -49,7 +49,8 @@
|
|||
(number->string (- inFrames n) 10)
|
||||
" (replace)"))
|
||||
(plug-in-map-object RUN-NONINTERACTIVE
|
||||
theImage theFrame ; mapping
|
||||
theImage ; mapping image
|
||||
1 (vector theFrame) ; mapping drawables
|
||||
1 ; viewpoint
|
||||
0.5 0.5 2.0 ; object pos
|
||||
0.5 0.5 0.0 ; first axis
|
||||
|
|
Loading…
Reference in New Issue