Skip to content

Commit

Permalink
Merge pull request #89572 from markdibarry/parallax_scale_regression
Browse files Browse the repository at this point in the history
Avoid passing zoom scale for ParallaxLayer mirror
  • Loading branch information
akien-mga committed Jun 17, 2024
2 parents d66281c + 2feed4c commit 9dca899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/2d/parallax_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9dca899

Please sign in to comment.