mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Removed canvas.line_2d references from SelectionRectangle.gd
This commit is contained in:
parent
860173d9a1
commit
e94e57ea09
|
@ -66,8 +66,6 @@ func _process(_delta : float) -> void:
|
||||||
tex.create_from_image(img, 0)
|
tex.create_from_image(img, 0)
|
||||||
update()
|
update()
|
||||||
|
|
||||||
# Makes line2d invisible
|
|
||||||
Global.canvas.line_2d.default_color = Color(0, 0, 0, 0)
|
|
||||||
else:
|
else:
|
||||||
get_parent().get_parent().mouse_default_cursor_shape = Input.CURSOR_ARROW
|
get_parent().get_parent().mouse_default_cursor_shape = Input.CURSOR_ARROW
|
||||||
|
|
||||||
|
@ -106,9 +104,6 @@ func _process(_delta : float) -> void:
|
||||||
|
|
||||||
Global.canvas.handle_redo("Rectangle Select") # Redo
|
Global.canvas.handle_redo("Rectangle Select") # Redo
|
||||||
|
|
||||||
# Makes line2d visible
|
|
||||||
Global.canvas.line_2d.default_color = Color.darkgray
|
|
||||||
|
|
||||||
if Global.current_project.selected_pixels.size() > 0:
|
if Global.current_project.selected_pixels.size() > 0:
|
||||||
# Handle copy
|
# Handle copy
|
||||||
if Input.is_action_just_pressed("copy"):
|
if Input.is_action_just_pressed("copy"):
|
||||||
|
|
Loading…
Reference in a new issue