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