mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:54:44 -04:00
Load the image of the cursor once
This should fix some rare crashes as well
This commit is contained in:
parent
d1793c2e60
commit
f3759d677e
2 changed files with 3 additions and 2 deletions
|
@ -248,7 +248,7 @@ func _input(event : InputEvent) -> void:
|
|||
Global.cursor_position_label.text = "[%s×%s] %s, %s" % [size.x, size.y, mouse_pos_floored.x, mouse_pos_floored.y]
|
||||
if !cursor_inside_canvas:
|
||||
cursor_inside_canvas = true
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Graphics/Cursor.png"), 0, Vector2(15, 15))
|
||||
Input.set_custom_mouse_cursor(Global.cursor_image, 0, Vector2(15, 15))
|
||||
if Global.show_left_tool_icon:
|
||||
Global.left_cursor.visible = true
|
||||
if Global.show_right_tool_icon:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue