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:
@ -102,7 +102,7 @@
|
||||
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 select-offset-x select-offset-y)
|
||||
(gimp-drawable-fill shadow-layer TRANSPARENT-FILL)
|
||||
(gimp-context-set-background shadow-color)
|
||||
@ -174,7 +174,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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user