nested clipping of canvas items now works
This commit is contained in:
parent
5ddbef1351
commit
7f001a2c76
1 changed files with 5 additions and 1 deletions
|
@ -6824,7 +6824,11 @@ void VisualServerRaster::_render_canvas_item(CanvasItem *p_canvas_item,const Mat
|
|||
copymem(child_items,ci->child_items.ptr(),child_item_count*sizeof(CanvasItem*));
|
||||
|
||||
if (ci->clip) {
|
||||
ci->final_clip_rect=global_rect;
|
||||
if (p_canvas_clip != NULL) {
|
||||
ci->final_clip_rect=p_canvas_clip->final_clip_rect.clip(global_rect);
|
||||
} else {
|
||||
ci->final_clip_rect=global_rect;
|
||||
}
|
||||
ci->final_clip_owner=ci;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue