fixed GimpImageType parameter passed to gimp-layer-new. Do not register

2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm: fixed GimpImageType
	parameter passed to gimp-layer-new. Do not register the script for
	grayscale images, it doesn't handle them properly.

svn path=/trunk/; revision=23667
This commit is contained in:
Sven Neumann
2007-09-27 10:45:03 +00:00
committed by Sven Neumann
parent b774625eee
commit c2020bf56d
2 changed files with 9 additions and 4 deletions

View File

@ -70,7 +70,7 @@
(bump-layer (car (gimp-layer-new image
(+ width 2)
(+ height 2)
GRAY
RGB-IMAGE
"Bumpmap"
100
NORMAL-MODE)))
@ -188,7 +188,7 @@
"Andrew Donkin <ard@cs.waikato.ac.nz>"
"Andrew Donkin"
"1997/11/06"
"RGB* GRAY*"
"RGB*"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0
SF-ADJUSTMENT _"Thickness" '(5 0 30 1 2 0 0)
@ -196,5 +196,4 @@
SF-TOGGLE _"Keep bump layer" FALSE
)
(script-fu-menu-register "script-fu-add-bevel"
"<Image>/Filters/Decor")
(script-fu-menu-register "script-fu-add-bevel" "<Image>/Filters/Decor")