-Resolved light clipping issue due to wrong global rect cache, fixes #1722

This commit is contained in:
Juan Linietsky 2015-04-25 10:32:34 -03:00
parent 52e2f4606f
commit ec00cd5c41

View file

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