From 6de6c4b8008127c09d54942405423d4dd87b73bf Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 14 Jul 2021 18:06:07 +0300 Subject: [PATCH] Closes #506 --- src/Tools/ColorPicker.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tools/ColorPicker.gd b/src/Tools/ColorPicker.gd index 8e06bb9b2..d37bc86ac 100644 --- a/src/Tools/ColorPicker.gd +++ b/src/Tools/ColorPicker.gd @@ -37,6 +37,10 @@ func draw_end(_position : Vector2) -> void: func _pick_color(position : Vector2) -> void: + var project : Project = Global.current_project + if project.tile_mode and project.get_tile_mode_rect().has_point(position): + position = position.posmodv(project.size) + if position.x < 0 or position.y < 0: return