From 0298d0216fcdb4ab51a7b7838d5504b3b1a5d205 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 26 Feb 2022 10:03:07 +0100 Subject: [PATCH] Fix the merger surface's texture rect calculation. --- library/terrain_2d_surface_merger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/terrain_2d_surface_merger.cpp b/library/terrain_2d_surface_merger.cpp index 65bab88..2ba4a35 100644 --- a/library/terrain_2d_surface_merger.cpp +++ b/library/terrain_2d_surface_merger.cpp @@ -59,8 +59,8 @@ void Terrain2DSurfaceMerger::refresh_rects() { } Rect2 region = at->get_region(); - float w = at->get_width(); - float h = at->get_height(); + float w = tex->get_width(); + float h = tex->get_height(); Rect2 r;