Avoid mirror scaling for ParallaxLayer

This commit is contained in:
markdibarry 2024-03-16 10:55:26 -04:00
parent 99ff024f78
commit 2feed4c4b4

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