From 2feed4c4b48276b6dde5f2acee3eeab42126753b Mon Sep 17 00:00:00 2001 From: markdibarry Date: Sat, 16 Mar 2024 10:55:26 -0400 Subject: [PATCH] Avoid mirror scaling for ParallaxLayer --- scene/2d/parallax_layer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/2d/parallax_layer.cpp b/scene/2d/parallax_layer.cpp index e2a7e9e1540..dfe321a4350 100644 --- a/scene/2d/parallax_layer.cpp +++ b/scene/2d/parallax_layer.cpp @@ -71,8 +71,8 @@ void ParallaxLayer::_update_mirroring() { if (pb) { RID c = pb->get_canvas(); RID ci = get_canvas_item(); - Point2 mirrorScale = mirroring * get_scale(); - RenderingServer::get_singleton()->canvas_set_item_mirroring(c, ci, mirrorScale); + Point2 mirror_scale = mirroring * orig_scale; + RenderingServer::get_singleton()->canvas_set_item_mirroring(c, ci, mirror_scale); RenderingServer::get_singleton()->canvas_item_set_interpolated(ci, false); } }