Merge pull request #43555 from akien-mga/pixel-snapping-fixup

Fix new transform to pixel snapping logic
This commit is contained in:
Rémi Verschelde 2020-11-15 11:41:09 +01:00 committed by GitHub
commit 6adfc6188c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ void RenderingServerCanvas::_cull_canvas_item(Item *p_canvas_item, const Transfo
Rect2 rect = ci->get_rect();
Transform2D xform = ci->xform;
if (snapping_2d_transforms_to_pixel) {
xform.elements[2].floor();
xform.elements[2] = xform.elements[2].floor();
}
xform = p_transform * xform;