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:
parent
7630dd8716
commit
2b1c0afd33
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue