Merge pull request #24513 from YeldhamDev/fix_tileset_editor_draw
Fix small drawing error in TileSet editor
This commit is contained in:
commit
f09956c86c
@ -874,6 +874,9 @@ void TileSetEditor::_on_workspace_draw() {
|
|||||||
draw_edited_region_subdivision();
|
draw_edited_region_subdivision();
|
||||||
} else {
|
} else {
|
||||||
int t_id = get_current_tile();
|
int t_id = get_current_tile();
|
||||||
|
if (t_id < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
Rect2i region;
|
Rect2i region;
|
||||||
if (draw_edited_region)
|
if (draw_edited_region)
|
||||||
region = edited_region;
|
region = edited_region;
|
||||||
|
Loading…
Reference in New Issue
Block a user