Skip to content

Commit

Permalink
Update terrain.py
Browse files Browse the repository at this point in the history
Error due to Pillow update to 10.0.0
  • Loading branch information
Tanay-ErrorCode committed Aug 10, 2023
1 parent 6cc619e commit 3642af2
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 3642af2

Please sign in to comment.