From 16e92b0e9f9ccae2dfe4e79750ab5a3e4e151b32 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 9 Jan 2020 20:51:03 +0200 Subject: [PATCH] Removed uneccesary code from Canvas.gd that prevented _input() from executing if Space was being pressed --- Scripts/Canvas.gd | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 005a27144..887e977d9 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -95,13 +95,6 @@ func _input(event : InputEvent) -> void: if Global.current_frame == frame && Global.has_focus: update() - # We don't want to draw when pressing space, because it's used for panning - if Input.is_action_pressed("space"): - previous_mouse_pos = current_pixel - previous_mouse_pos.x = clamp(previous_mouse_pos.x, location.x, location.x + size.x) - previous_mouse_pos.y = clamp(previous_mouse_pos.y, location.y, location.y + size.y) - return - sprite_changed_this_frame = false var mouse_pos := current_pixel var mouse_pos_floored := mouse_pos.floor()