1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
This commit is contained in:
Manolis Papadeas 2021-07-14 18:06:07 +03:00
parent a40203e5cc
commit 6de6c4b800

View file

@ -37,6 +37,10 @@ func draw_end(_position : Vector2) -> void:
func _pick_color(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: if position.x < 0 or position.y < 0:
return return