diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-15 11:41:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 11:41:09 +0100 |
commit | 6adfc6188c455ebc974a2faf3e86facd4345719e (patch) | |
tree | db2a30127b8006f7325e3989f8a0c3bded7d32e0 /servers/rendering/rendering_server_canvas.cpp | |
parent | f939d9399f48f95f8ec52e792a900566982bf564 (diff) | |
parent | a78d96086fab73286b05e2f3f522c443280c182d (diff) |
Merge pull request #43555 from akien-mga/pixel-snapping-fixup
Fix new transform to pixel snapping logic
Diffstat (limited to 'servers/rendering/rendering_server_canvas.cpp')
-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; |