Fixed issue where the canvas was stuck on 64x64 size

This commit is contained in:
OverloadedOrama 2019-12-28 19:03:45 +02:00
parent d1e5b23f0b
commit 04fe708560
2 changed files with 5 additions and 1 deletions

View file

@ -110,6 +110,10 @@ func _input(event : InputEvent) -> void:
var ld := 0
var ld_amount := 0.1
west_limit = location.x
east_limit = location.x + size.x
north_limit = location.y
south_limit = location.y + size.y
if Global.selected_pixels.size() != 0:
west_limit = max(west_limit, Global.selection_rectangle.polygon[0].x)
east_limit = min(east_limit, Global.selection_rectangle.polygon[2].x)