mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Closes #506
This commit is contained in:
parent
a40203e5cc
commit
6de6c4b800
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue