Porting to new API: add-[layer|channel] > insert-[layer|channel] and more, perspective-shadow.scm will need revisiting re. new item transformation API

This commit is contained in:
Alexandre Prokoudine
2010-10-10 02:14:53 +04:00
parent 3de4d7263a
commit bb9c1210b3
3 changed files with 13 additions and 13 deletions

View File

@ -126,7 +126,7 @@
"Drop Shadow"
shadow-opacity
NORMAL-MODE)))
(gimp-image-add-layer image shadow-layer -1)
(gimp-image-insert-layer image shadow-layer -1 -1)
(gimp-layer-set-offsets shadow-layer
shadow-offset-x
shadow-offset-y))
@ -146,7 +146,7 @@
(if (= from-selection TRUE)
(begin
(gimp-selection-load active-selection)
(gimp-item-to-selection active-selection 2)
(gimp-edit-clear shadow-layer)
(gimp-image-remove-channel image active-selection)))