Merge pull request #46495 from asheraryam/fix-clip-content-error

Fix rounding error in Clip Content [3.2]
This commit is contained in:
Rémi Verschelde 2021-03-02 17:07:06 +01:00 committed by GitHub
commit 9fa85b343c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,8 @@ void VisualServerCanvas::_render_canvas_item(Item *p_canvas_item, const Transfor
} else {
ci->final_clip_rect = global_rect;
}
ci->final_clip_rect.position = ci->final_clip_rect.position.round();
ci->final_clip_rect.size = ci->final_clip_rect.size.round();
ci->final_clip_owner = ci;
} else {