Merge pull request #89572 from markdibarry/parallax_scale_regression

Avoid passing zoom scale for ParallaxLayer mirror
This commit is contained in:
Rémi Verschelde 2024-06-17 10:57:51 +02:00
commit 9dca8995b2
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}