Always call tool_process in handle_mouse_button_down.

This commit is contained in:
Relintai 2022-11-18 11:29:07 +01:00
parent 75ae11780b
commit 518383266b
2 changed files with 4 additions and 3 deletions

View File

@ -58,8 +58,8 @@ func handle_mouse_button_down(local_position : Vector2, event: InputEvent) -> vo
print("TODO")
elif current_tool == TOOL_PASTECUT:
print("TODO")
elif current_tool == TOOL_PENCIL:
tool_process(local_position, event)
tool_process(local_position, event)
func do_action(arr : Array) -> void:

View File

@ -28,7 +28,7 @@ size = Vector2( 32, 32 )
[node name="PaintProject" type="PaintProject"]
size = Vector2i( 128, 128 )
current_color = Color( 0.00784314, 0.835294, 0.564706, 1 )
current_color = Color( 0.658824, 0.313726, 0.207843, 1 )
color_presets = PoolColorArray( 0.67914, 0.117493, 0.0852439, 1, 0.129412, 0.113725, 0.384314, 1, 0.0666667, 0.796078, 0.196078, 1, 0.0666667, 0.796078, 0.196078, 1, 0.964706, 0.992157, 0.121569, 1, 0.00784314, 0.835294, 0.564706, 1, 0.0666667, 0.796078, 0.196078, 1, 0.658824, 0.313726, 0.207843, 1 )
script = ExtResource( 2 )
@ -50,4 +50,5 @@ script = ExtResource( 3 )
size = Vector2i( 128, 128 )
brush_prefab = 1
brush_size = 3
current_tool = 3
script = ExtResource( 1 )