1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fixed an issue with brushes

This commit is contained in:
Manolis Papadeas 2020-11-25 01:21:28 +02:00
parent 96454a2d57
commit 37ee4856ff

View file

@ -260,7 +260,7 @@ func draw_tool_brush(position : Vector2) -> void:
if Global.mirror_view: if Global.mirror_view:
position.x = Global.current_project.size.x - position.x position.x = Global.current_project.size.x - position.x
if Global.tile_mode and _get_tile_mode_rect().has_point(position): if Global.current_project.tile_mode and _get_tile_mode_rect().has_point(position):
position = position.posmodv(Global.current_project.size) position = position.posmodv(Global.current_project.size)
var size := _brush_image.get_size() var size := _brush_image.get_size()