diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-25 10:32:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-25 10:32:34 -0300 |
commit | ec00cd5c416cc060ecff254d04da20ef878afeb9 (patch) | |
tree | 7ab8e6f269949cc67d38441bc7cb4cac9d002f88 /servers/visual/visual_server_raster.cpp | |
parent | 52e2f4606f1df7ff84187b8fbc0977ac4e97599d (diff) |
-Resolved light clipping issue due to wrong global rect cache, fixes #1722
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r-- | servers/visual/visual_server_raster.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index 2417c02bf8..64ddc12513 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -6839,6 +6839,7 @@ void VisualServerRaster::_render_canvas_item(CanvasItem *p_canvas_item,const Mat ci->final_transform=xform; ci->final_opacity=opacity * ci->self_opacity; ci->global_rect_cache=global_rect; + ci->global_rect_cache.pos-=p_clip_rect.pos; int zidx = p_z-CANVAS_ITEM_Z_MIN; |