diff --git a/src/Tools/BaseShapeDrawer.gd b/src/Tools/BaseShapeDrawer.gd index 44992ad26..54369d670 100644 --- a/src/Tools/BaseShapeDrawer.gd +++ b/src/Tools/BaseShapeDrawer.gd @@ -89,7 +89,7 @@ func _input(event: InputEvent) -> void: func draw_start(pos: Vector2i) -> void: pos = snap_position(pos) super.draw_start(pos) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _picking_color = true _pick_color(pos) return @@ -111,7 +111,7 @@ func draw_move(pos: Vector2i) -> void: pos = snap_position(pos) super.draw_move(pos) if _picking_color: # Still return even if we released draw_color_picker (Alt) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _pick_color(pos) return diff --git a/src/Tools/DesignTools/Bucket.gd b/src/Tools/DesignTools/Bucket.gd index 2e640a365..1862f256c 100644 --- a/src/Tools/DesignTools/Bucket.gd +++ b/src/Tools/DesignTools/Bucket.gd @@ -151,7 +151,7 @@ func update_pattern() -> void: func draw_start(pos: Vector2i) -> void: super.draw_start(pos) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _pick_color(pos) return _undo_data = _get_undo_data() diff --git a/src/Tools/DesignTools/Eraser.gd b/src/Tools/DesignTools/Eraser.gd index 754b1200a..d4d08fd37 100644 --- a/src/Tools/DesignTools/Eraser.gd +++ b/src/Tools/DesignTools/Eraser.gd @@ -37,7 +37,7 @@ func set_config(config: Dictionary) -> void: func draw_start(pos: Vector2i) -> void: pos = snap_position(pos) super.draw_start(pos) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _picking_color = true _pick_color(pos) return @@ -71,7 +71,7 @@ func draw_move(pos_i: Vector2i) -> void: pos = snap_position(pos) super.draw_move(pos) if _picking_color: # Still return even if we released Alt - if Input.is_action_pressed(&"draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _pick_color(pos) return diff --git a/src/Tools/DesignTools/Pencil.gd b/src/Tools/DesignTools/Pencil.gd index 1ee1dfcc9..145720671 100644 --- a/src/Tools/DesignTools/Pencil.gd +++ b/src/Tools/DesignTools/Pencil.gd @@ -94,7 +94,7 @@ func draw_start(pos: Vector2i) -> void: _old_spacing_mode = _spacing_mode pos = snap_position(pos) super.draw_start(pos) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _picking_color = true _pick_color(pos) return @@ -136,7 +136,7 @@ func draw_move(pos_i: Vector2i) -> void: pos = snap_position(pos) super.draw_move(pos) if _picking_color: # Still return even if we released Alt - if Input.is_action_pressed(&"draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _pick_color(pos) return diff --git a/src/Tools/DesignTools/Shading.gd b/src/Tools/DesignTools/Shading.gd index a07fd22fb..1a964430b 100644 --- a/src/Tools/DesignTools/Shading.gd +++ b/src/Tools/DesignTools/Shading.gd @@ -208,7 +208,7 @@ func update_strength() -> void: func draw_start(pos: Vector2i) -> void: pos = snap_position(pos) super.draw_start(pos) - if Input.is_action_pressed("draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _picking_color = true _pick_color(pos) return @@ -242,7 +242,7 @@ func draw_move(pos_i: Vector2i) -> void: pos = snap_position(pos) super.draw_move(pos) if _picking_color: # Still return even if we released Alt - if Input.is_action_pressed(&"draw_color_picker"): + if Input.is_action_pressed(&"draw_color_picker", true): _pick_color(pos) return