1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-22 21:43:13 +00:00

Remove unneeded code in Canvas.gd

This commit is contained in:
Emmanouil Papadeas 2023-03-28 15:50:36 +03:00
parent 7630dd8716
commit 2b1c0afd33

View file

@ -68,14 +68,6 @@ func _draw() -> void:
func _input(event: InputEvent) -> void:
if Global.current_project.get_current_cel() is Cel3D and Global.has_focus:
for child in get_children():
if not child is Viewport:
continue
var modified_event := event.duplicate()
if event is InputEventMouse:
modified_event.position = current_pixel.floor()
child.input(modified_event)
# Don't process anything below if the input isn't a mouse event, or Shift/Ctrl.
# This decreases CPU/GPU usage slightly.
var get_velocity := false