Moved canvas indicator drawing to a new script

Cursor indicators now appear on top of the grid again
This commit is contained in:
OverloadedOrama 2020-08-18 16:35:05 +03:00
parent 92332cc52e
commit f2136236b1
4 changed files with 19 additions and 6 deletions

View file

@ -308,7 +308,7 @@ func draw_indicator() -> void:
func draw_indicator_at(position : Vector2, offset : Vector2, color : Color) -> void:
var canvas = Global.canvas
var canvas = Global.canvas.indicators
if _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM] and not _draw_line:
position -= (_brush_image.get_size() / 2).floor()
position -= offset