Skip to content

Commit

Permalink
Merge pull request #565 from Tanay-ErrorCode/master
Browse files Browse the repository at this point in the history
Update terrain.py, error due to Pillow version 10.0.0.
  • Loading branch information
pokepetter committed Aug 27, 2023
2 parents 76d76ab + 3642af2 commit d625b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ursina/models/procedural/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def texture_to_height_values(heightmap, skip=1):
width, depth = heightmap.width//skip, heightmap.height//skip
img = Image.open(heightmap.path).convert('L')
if skip > 1:
img = img.resize([width, depth], Image.ANTIALIAS)
img = img.resize([width, depth], Image.LANCZOS)

height_values = asarray(img)
height_values = flip(height_values, axis=0)
Expand Down

0 comments on commit d625b75

Please sign in to comment.