mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #103017 from kleonc/canvas_item_debug_redraw_fix_rects_in_rd
Fix debug CanvasItem redraw rects in RD renderer
This commit is contained in:
commit
e567f49cbb
1 changed files with 2 additions and 1 deletions
|
@ -2913,12 +2913,13 @@ void RendererCanvasRenderRD::_record_item_commands(const Item *p_item, RenderTar
|
|||
r_current_batch->tex_info = tex_info;
|
||||
}
|
||||
|
||||
_update_transform_2d_to_mat2x3(base_transform, world);
|
||||
InstanceData *instance_data = new_instance_data(world, lights, base_flags, r_index, uniforms_ofs, tex_info);
|
||||
|
||||
Rect2 src_rect;
|
||||
Rect2 dst_rect;
|
||||
|
||||
dst_rect = Rect2(Vector2(), p_item->rect.size);
|
||||
dst_rect = p_item->rect;
|
||||
if (dst_rect.size.width < 0) {
|
||||
dst_rect.position.x += dst_rect.size.width;
|
||||
dst_rect.size.width *= -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue