Merge pull request #2572 from leezh/clipping-fix

nested clipping of canvas items now works
This commit is contained in:
Juan Linietsky 2015-10-17 09:48:38 -03:00
commit 652a01f16f
1 changed files with 5 additions and 1 deletions

View File

@ -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 {