From 3855fa3ddef37033cd1f8ba1278f78acd329a16c Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 26 Feb 2022 23:28:54 +0100 Subject: [PATCH] Fix typo. --- library/terrain_2d_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/terrain_2d_surface.cpp b/library/terrain_2d_surface.cpp index 4932537..78e383a 100644 --- a/library/terrain_2d_surface.cpp +++ b/library/terrain_2d_surface.cpp @@ -63,7 +63,7 @@ _FORCE_INLINE_ Vector2 Terrain2DSurface::transform_uv_scaled(const Vector2 &p_uv Rect2 r = _rect; float sizex = r.size.x / static_cast(p_max); - float sizey = r.size.x / static_cast(p_max); + float sizey = r.size.y / static_cast(p_max); uv.x *= sizex; uv.y *= sizey;