-Improve resource previews
-Also fixed draw_texture_rect() tile parameter
This commit is contained in:
parent
b777b32470
commit
d3495b128a
27 changed files with 1244 additions and 320 deletions
|
|
@ -3661,8 +3661,11 @@ void VisualServerRaster::canvas_item_add_texture_rect(RID p_item, const Rect2& p
|
|||
rect->modulate=p_modulate;
|
||||
rect->rect=p_rect;
|
||||
rect->flags=0;
|
||||
if (p_tile)
|
||||
if (p_tile) {
|
||||
rect->flags|=Rasterizer::CANVAS_RECT_TILE;
|
||||
rect->flags|=Rasterizer::CANVAS_RECT_REGION;
|
||||
rect->source=Rect2(0,0,p_rect.size.width,p_rect.size.height);
|
||||
}
|
||||
|
||||
if (p_rect.size.x<0) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue