diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:30:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:30:08 -0300 |
commit | 63033aa646f7a49fbcecbc8cc30077cf268be10c (patch) | |
tree | 80ccf1aed83e6c4d3ed1db2e1d2c0258090f7339 /servers/visual | |
parent | ab22203791489df160c36a29a3cd8aa8b32bec04 (diff) | |
parent | 0d2b28377f1257af039c088f30c11aa0d12cc695 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'servers/visual')
-rw-r--r-- | servers/visual/visual_server_raster.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index 1da536c124..01af2d86ad 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -5219,7 +5219,6 @@ void VisualServerRaster::_light_instance_update_lispsm_shadow(Instance *p_light, AABB proj_space_aabb; - float max_d,min_d; { @@ -6824,7 +6823,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 { |