mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
-Resolved light clipping issue due to wrong global rect cache, fixes #1722
This commit is contained in:
parent
52e2f4606f
commit
ec00cd5c41
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user