mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:54:44 -04:00
Fixed issue where the canvas was stuck on 64x64 size
This commit is contained in:
parent
d1e5b23f0b
commit
04fe708560
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue