Merge pull request #46594 from asheraryam/fix-clip-content-master
Fix rounding error in Clip Content [4.0]
This commit is contained in:
commit
8c45b1d61c
@ -148,6 +148,8 @@ void RendererCanvasCull::_cull_canvas_item(Item *p_canvas_item, const Transform2
|
||||
} 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user