see plug-ins/perl/Changes
This commit is contained in:
parent
c02616dc38
commit
236a5172cd
3 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ register "colour_to_alpha",
|
|||
sub { # es folgt das eigentliche Skript...
|
||||
my($image,$drawable,$colour)=@_;
|
||||
|
||||
$drawable->layer or die "colour_to_alpha only works with layers\n";
|
||||
$drawable->is_layer or die "colour_to_alpha only works with layers\n";
|
||||
$drawable->add_alpha unless $drawable->has_alpha;
|
||||
|
||||
Gimp->progress_init ("Replacing colour...");
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ register "plug_in_ditherize",
|
|||
sub {
|
||||
my($image,$drawable,$colours)=@_;
|
||||
|
||||
$drawable->layer or die "this plug-in only works for layers";
|
||||
$drawable->is_layer or die "this plug-in only works for layers";
|
||||
|
||||
# make sure somehting is selected
|
||||
$drawable->mask_bounds or $image->selection_all;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ sub fire {
|
|||
|
||||
my ($w,$h) = ($drawable->width, $drawable->height);
|
||||
|
||||
$drawable->layer or die "sorry, this function needs to call functions that work only for layers :(\n";
|
||||
$drawable->is_layer or die "sorry, this function needs to call functions that work only for layers :(\n";
|
||||
|
||||
$image->undo_push_group_start;
|
||||
$drawable->wind($threshold, 0, $strength, 0, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue