Skip to content

Commit

Permalink
fixed an error that occured when inserting the black background layer…
Browse files Browse the repository at this point in the history
…, likely due to a deprecated function
  • Loading branch information
MCOfficer committed Jan 1, 2018
1 parent bd4fc17 commit 34c3365
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CreatePlanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def createplanet(image, atmospherecolor, postprocessing, planetrand, planetwidth

# add a black background
black = gimp.Layer(image, "black background", width, width, RGB_IMAGE, 100, NORMAL_MODE)
image.add_layer(black, 0)
image.lower_layer(black)
pdb.gimp_image_insert_layer(image, black, None, 2)

# select the planet
pdb.gimp_image_set_active_layer(image, planetlayer)
Expand Down

0 comments on commit 34c3365

Please sign in to comment.