Avoid mirror scaling for ParallaxLayer
This commit is contained in:
parent
99ff024f78
commit
2feed4c4b4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue