You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix new transform to pixel snapping logic
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
This commit is contained in:
@@ -115,7 +115,7 @@ void RenderingServerCanvas::_cull_canvas_item(Item *p_canvas_item, const Transfo
|
|||||||
Rect2 rect = ci->get_rect();
|
Rect2 rect = ci->get_rect();
|
||||||
Transform2D xform = ci->xform;
|
Transform2D xform = ci->xform;
|
||||||
if (snapping_2d_transforms_to_pixel) {
|
if (snapping_2d_transforms_to_pixel) {
|
||||||
xform.elements[2].floor();
|
xform.elements[2] = xform.elements[2].floor();
|
||||||
}
|
}
|
||||||
xform = p_transform * xform;
|
xform = p_transform * xform;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user