From 2b1c0afd337849881c8903de68b20c85b206495b Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Tue, 28 Mar 2023 15:50:36 +0300 Subject: [PATCH] Remove unneeded code in Canvas.gd --- src/UI/Canvas/Canvas.gd | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/UI/Canvas/Canvas.gd b/src/UI/Canvas/Canvas.gd index c3e918565..8d8ba1f64 100644 --- a/src/UI/Canvas/Canvas.gd +++ b/src/UI/Canvas/Canvas.gd @@ -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