From 7ea59f855a97c2ea4404f05debfc8e08956d4040 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 26 Feb 2022 23:37:44 +0100 Subject: [PATCH] Fix typo. --- library/voxel_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/voxel_surface.cpp b/library/voxel_surface.cpp index 3181dc4..ea67694 100644 --- a/library/voxel_surface.cpp +++ b/library/voxel_surface.cpp @@ -84,7 +84,7 @@ _FORCE_INLINE_ Vector2 VoxelSurface::transform_uv_scaled(const VoxelSurfaceSides Rect2 r = _rects[p_side]; 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;