From 70dfd856fe96e7b64c8c0029dd9165441d46fdde Mon Sep 17 00:00:00 2001 From: azagaya Date: Fri, 29 Nov 2019 11:13:11 -0300 Subject: [PATCH] Don't draw blue rectangle arround selected pixel when picking color --- Scripts/Canvas.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 4dbbb0c90..9082d2c1c 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -370,7 +370,7 @@ func _draw() -> void: var mouse_pos := get_local_mouse_position() + location if point_in_rectangle(mouse_pos, location, location + size): mouse_pos = mouse_pos.floor() - if Global.left_square_indicator_visible: + if Global.left_square_indicator_visible and Global.can_draw: match Global.current_left_brush_type: Global.BRUSH_TYPES.PIXEL: var start_pos_x = mouse_pos.x - (Global.left_brush_size >> 1) @@ -381,7 +381,7 @@ func _draw() -> void: var dst := rectangle_center(mouse_pos, custom_brush_size) draw_texture(Global.custom_left_brush_texture, dst) - if Global.right_square_indicator_visible: + if Global.right_square_indicator_visible and Global.can_draw: match Global.current_right_brush_type: Global.BRUSH_TYPES.PIXEL: var start_pos_x = mouse_pos.x - (Global.right_brush_size >> 1)