mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:44:42 -04:00
Fix for crashes that occur when using selection tool and line tool
This commit is contained in:
parent
40dfe544d8
commit
632a0c8dd3
2 changed files with 4 additions and 3 deletions
|
@ -256,7 +256,8 @@ func _process(delta : float) -> void:
|
|||
is_making_line = true
|
||||
elif Input.is_action_just_released("shift"):
|
||||
is_making_line = false
|
||||
line_2d.queue_free()
|
||||
if is_instance_valid(line_2d):
|
||||
line_2d.queue_free()
|
||||
|
||||
if is_making_line:
|
||||
line_2d.set_point_position(1, mouse_pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue