summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scene/2d/parallax_layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/parallax_layer.cpp b/scene/2d/parallax_layer.cpp
index e2a7e9e154..dfe321a435 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);
}
}