diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-11-15 10:52:03 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-11-15 10:52:15 +0100 |
commit | a78d96086fab73286b05e2f3f522c443280c182d (patch) | |
tree | db2a30127b8006f7325e3989f8a0c3bded7d32e0 /servers | |
parent | f939d9399f48f95f8ec52e792a900566982bf564 (diff) |
Fix new transform to pixel snapping logic
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/rendering_server_canvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rendering_server_canvas.cpp b/servers/rendering/rendering_server_canvas.cpp index 4480b79f75..5a12be5659 100644 --- a/servers/rendering/rendering_server_canvas.cpp +++ b/servers/rendering/rendering_server_canvas.cpp @@ -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; |