Merge pull request #46495 from asheraryam/fix-clip-content-error
Fix rounding error in Clip Content [3.2]
This commit is contained in:
commit
9fa85b343c
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue